The Following exemplifies the code I am trying to run
For i = 5 To LastRow
Cells(i, 13).Select
var2 = Cells(i, 13)
If var2 = 0 Then
Rows(i).Delete
Else
var3 = 1
End If
Next i
Basically I have a column full of 1's and 0's. If the cell contains a zero I need for the column to be deleted. My problem comes when adjacent cells contain zeros. The code will delete the cell, the proceeding row with the zero will shift up and the loop will move on to the next row, missing the zero that was shifted up.
Anyone have a solution for this.