Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using visual studio to work with excel, Can anyone tell me why this isn't
working: For i = 3 To lastRow Step 1 If (LCV.WorksheetFunction.IsNA(LCV.WorksheetFunction. VLookup(LCV.Range("A" & i).Value, oApp.Range("A1:J" & lastRow).Value, 10, False))) Then LCV.Range("L" & i).Value = 0 Else : LCV.Range("L" & i).Value = LCV.WorksheetFunction.VLookup(LCV.Range("A" & i).Value, oApp.Range("A1:J" & lastRow).Value, 10, False) End If Instead of returning a zero where there is an N/A it just kicks me out of the program. Any ideas? Thanks ahead of time! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ISNA Function | Excel Worksheet Functions | |||
IF?ISNA?MATCH? Function? | Excel Discussion (Misc queries) | |||
Vlookup - ISNA function | Excel Discussion (Misc queries) | |||
ISNA function | Excel Discussion (Misc queries) | |||
example if IF(ISNA()) function | Excel Worksheet Functions |