I try to run the VBA code below to delete all of the rows is the range row 12-100 what are empty in the C column.
Anyhow I get "out of memory" error when running this. Any idea about why?
For i = 100 To 12 Step -1
If Cells(i, 3) = "" Or Cells(i, 3) = "Name" Then
Range(Cells(i, 1), Cells(i, 2)).Select
Selection.Delete Shift:=xlUp
End If
Next i
Best
Laban
Anyhow I get "out of memory" error when running this. Any idea about why?
For i = 100 To 12 Step -1
If Cells(i, 3) = "" Or Cells(i, 3) = "Name" Then
Range(Cells(i, 1), Cells(i, 2)).Select
Selection.Delete Shift:=xlUp
End If
Next i
Best
Laban