Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Error Resume I want the return to be " " ,so I have the code below, but it
doesn't return " " , instead it returns the value of the cell before it. I've tried IsEmpty() rather than VariantType.Empty, but it doesn't recogize that in Visual Studio 2005, it says IsEmpty() is no longer supported. Any ideas on what I can do to get it to return " " instead of the value of tmp that is stored from the previous loop? Dim tmp As VariantType For i = 3 To lastRow Step 1 On Error Resume Next tmp = LCV.WorksheetFunction.VLookup(LCV.Range("A" & i).Value, oApp.Range("A1:J" & lastRow).Value, 10, False) On Error GoTo 0 If tmp = VariantType.Empty Then LCV.Range("L" & i).Value = " " Else : LCV.Range("L" & i).Value = tmp End If Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
#VALUE error with empty cells | Excel Discussion (Misc queries) | |||
#Empty error | Excel Discussion (Misc queries) | |||
Error (empty list box)? | Excel Programming | |||
error: cannot empty the Clipboard | New Users to Excel |