Hi all,
I have nto written macros for some years and so am having to grasp things again. I have a vlookup which searches for a number obtained from a text file input using mid and search functions. It looks up in a range within another sheet. these are numbers.
I keep getting error 2042 when i have tested values that are true and false. I have also converted the data type of the string look up to be Lng nut still it fails.
I have also tried to use worksheetfunction but it did not work. I have also tried using .value on the end.
The vba is below.
Any help would be greatly appreciated.
Thanks,
Rich
Please Login or Register to view this content.
Bookmarks