Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this issue is that VLOOKUP and other similar function raise an error when no
match is found. Wrap it in an error trap - personally, I do this within a user defined function so that my error handling doesn't break, but not everybody likes this ... ON ERROR RESUME NEXT result = WorksheetFunction.VLookup(c.Offset(0, 2).Value, rngsStatusdata, 7, False) ON ERROR GOTO 0 "Ayo" wrote: How do I go around this runtime error? I tried the following: If Application.WorksheetFunction.VLookup(c.Offset(0, 2).Value, rngsStatusdata, 7, False) < " " Then If Application.WorksheetFunction.VLookup(c.Offset(0, 2).Value, rngsStatusdata, 7, False) < "#N/A" Then If Application.WorksheetFunction.VLookup(c.Offset(0, 2).Value, rngsStatusdata, 7, False) < "#N/A" Then trueOnAirWS.Range("J" & reportCurrentRow & "") = Application.WorksheetFunction.VLookup(c.Offset(0, 2).Value, rngsStatusdata, 7, False) End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Unable to get the VLookup property of the WorksheetFunction class | Excel Discussion (Misc queries) | |||
unable to get match property of WorksheetFunction class | Excel Programming | |||
Unable to get Match property of the WorksheetFunction class | Excel Programming | |||
Unable to get the Vlookup property of the WorksheetFunction class | Excel Programming | |||
Unable to get the Vlookup Property of the WorkSheetFunction Class | Excel Programming |