I hope someone can help me. I'm having trouble with my
VB Vlookups with a string as the search arg1.
The following doesn't work because SystemCode is a String:
ProductName = Application.WorksheetFunction.VLookup(SystemCode, Worksheets("New HRC List").Range("B9:C98"), 2, False)
This works because the SystemCode is defined:
ProductName = Application.WorksheetFunction.VLookup(Worksheets(" Customer Data").Cells(Counter + 2, 18), Worksheets("New HRC List").Range("B9:C98"), 2, False)
What syntax will work with a string?