I know enough about VBA code just to be dangerous. I am trying to get my macro to look through my spreadsheet line by line to determine whether to delete the entire row based on the value in column A being numeric or not. I have tried the following code, but it blows up saying I need inputs in line 3. Some of the lines in the spreadsheet are blank (no value). Could this be the problem. The spreadsheet ALWAYS has 225 lines, if that would help to just count the rows it looks at. Please advise.
1 LR = Cells(Rows.Count, 1).End(xlUp).Row
2 For i = LR To 2 Step -1
3 If Range("A" & i) = Not IsNumeric(Cell.Value) Then
4 Range("A" & i).EntireRow.Delete Shift:=xlUp
5 End If
6 Next i
1 LR = Cells(Rows.Count, 1).End(xlUp).Row
2 For i = LR To 2 Step -1
3 If Range("A" & i) = Not IsNumeric(Cell.Value) Then
4 Range("A" & i).EntireRow.Delete Shift:=xlUp
5 End If
6 Next i