So this worked fine a few months which was the last time i used it but every time i run it now it says
Run-time error 13
Type Mismatch
Sub DeleteRows()
Dim iLastRow As Long
Dim i As Long
iLastRow = Cells(Rows.Count, "G").End(xlUp).Row
For i = iLastRow To 1 Step -1
If Cells(i, "G").Value = "0" Then
Rows(i).delete
End If
Next i
End Sub
It highlights an issue with this row
If Cells(i, "G").Value = "0" Then
Any ideas ?
Run-time error 13
Type Mismatch
Sub DeleteRows()
Dim iLastRow As Long
Dim i As Long
iLastRow = Cells(Rows.Count, "G").End(xlUp).Row
For i = iLastRow To 1 Step -1
If Cells(i, "G").Value = "0" Then
Rows(i).delete
End If
Next i
End Sub
It highlights an issue with this row
If Cells(i, "G").Value = "0" Then
Any ideas ?