Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Macro/VB Question DDE Question | Excel Worksheet Functions | |||
VLOOKUP question | Excel Worksheet Functions | |||
Vlookup question | Excel Worksheet Functions | |||
Vlookup question | Excel Worksheet Functions | |||
Vlookup question | Excel Discussion (Misc queries) |