chris-uk-lad
Registered User.
- Local time
- Today, 05:35
- Joined
- Jul 8, 2008
- Messages
- 271
Hi,
I have a problem with a line of code which checks against 2 cells and searches for it in all the worksheets in the workbook which works fine in the most case however, it seems to be looking for a likeness, not the exact value.
This should return:
01_Access/aa1242
But instead returns:
01_Access/aa12
How do i make it so it picks up the accurate value, and not the first one that looks like it?
Thanks
(for reference, ws.Cells(newCount, 4).Value = 01_Access/dd12)
I have a problem with a line of code which checks against 2 cells and searches for it in all the worksheets in the workbook which works fine in the most case however, it seems to be looking for a likeness, not the exact value.
Code:
Set foundCell = .Range("S:S").Find(what:=ws.Cells(newCount, 4).Value, After:=.Range("S" & Count))
This should return:
01_Access/aa1242
But instead returns:
01_Access/aa12
How do i make it so it picks up the accurate value, and not the first one that looks like it?
Thanks
(for reference, ws.Cells(newCount, 4).Value = 01_Access/dd12)