N
Norm
Why does an Excel macro stop when a VLookup can't find an
exact match? I would expect it to return N/A in my
variant, but it doesn't. Instead it returns a Run-time
error 1004: Unable to get the VLookup property of the
WorksheetFunction class.
Sample Code:
v = WorksheetFunction.VLookup(r1.Value, ProducerTable, 1,
False)
r1.Value contains producer codes like 61148. I want to
know if that code is in "ProducerTable" which is a one
column range of the valid producer codes.
I was then going to check for ISNA(v) to see if it worked.
OR is there a better way of verifying codes from a range??
THANK YOU!
exact match? I would expect it to return N/A in my
variant, but it doesn't. Instead it returns a Run-time
error 1004: Unable to get the VLookup property of the
WorksheetFunction class.
Sample Code:
v = WorksheetFunction.VLookup(r1.Value, ProducerTable, 1,
False)
r1.Value contains producer codes like 61148. I want to
know if that code is in "ProducerTable" which is a one
column range of the valid producer codes.
I was then going to check for ISNA(v) to see if it worked.
OR is there a better way of verifying codes from a range??
THANK YOU!