mattiaturalla
Technical User
I am continuing to struggle with a macro that should be a piece of cake. It is supposed to scan down thru a spreadsheet removing parts of rows that have returned #N/A in response to vlookup. I can't select the entire row as there is detail further to the right. The macro to date is;
Range("d4").Select
Do Until i = 75
If Application.WorksheetFunction.IsNA(ActiveCell) Then
Range("ActiveCell.Offset(0, -4), ActiveCell.Offset(0, 3)").Select
Selection.Delete Shift:=xlUp
Else
ActiveCell.Offset(1, 0).Select
End If
i = i + 1
Loop
It is breaking down in the Range.Select line but i can't see what i've done wrong there. Or can you you only use simple single references (eg "A1") in Range.Select?
Any assistance would be much appreciated
Range("d4").Select
Do Until i = 75
If Application.WorksheetFunction.IsNA(ActiveCell) Then
Range("ActiveCell.Offset(0, -4), ActiveCell.Offset(0, 3)").Select
Selection.Delete Shift:=xlUp
Else
ActiveCell.Offset(1, 0).Select
End If
i = i + 1
Loop
It is breaking down in the Range.Select line but i can't see what i've done wrong there. Or can you you only use simple single references (eg "A1") in Range.Select?
Any assistance would be much appreciated