Hi,
I want to use the MATCH(lookup_value, lookup_array, [match_type]) function in VBA.
I need the lookup_value to be a variable (dim as long), but I can´t get this to work, see below. It works fine when I use a number as lookup_value, but not a variable.
I get run-time-error 1004 "Unable to get the MATCH property of the WorksheetFunction class"![]()
Please Login or Register to view this content.
Any idea why I can´t use the variable Vendor as lookup_value in the MATCH function?
Bookmarks