Can someone give a row by row explantion of how this code functions:
Dim i As Integer
i = 1
While Cells(i, 4) <> ""
Cells(i, 4).Select
If Cells(i, 4) = 0 Then
Rows(i).Delete
Else
i = i + 1
End If
Range("F1").Select
Wend
Obviously the goal is delete rows that have a zero in the dollars column but how does the code know which column to look at for those zeros? I have other columns that may have no value also? This appreaed to work for my application but I am leary about it.
Thankyou
Dim i As Integer
i = 1
While Cells(i, 4) <> ""
Cells(i, 4).Select
If Cells(i, 4) = 0 Then
Rows(i).Delete
Else
i = i + 1
End If
Range("F1").Select
Wend
Obviously the goal is delete rows that have a zero in the dollars column but how does the code know which column to look at for those zeros? I have other columns that may have no value also? This appreaed to work for my application but I am leary about it.
Thankyou