K
Ken
The following loop is part of a larger macro.
For ILoop = NumRowsF850 To 1 Step -1
If Cells(ILoop, 5) = 0 Then
Rows(ILoop).Delete
End If
Next ILoop
If I find a null cell in the loop on line two, it is evaluated as 0 and the
code branches to the third line.
I do not want to execute the third line of code if the cell is null.
How do I need to re-code line two to avoid this problem?
TIA.
For ILoop = NumRowsF850 To 1 Step -1
If Cells(ILoop, 5) = 0 Then
Rows(ILoop).Delete
End If
Next ILoop
If I find a null cell in the loop on line two, it is evaluated as 0 and the
code branches to the third line.
I do not want to execute the third line of code if the cell is null.
How do I need to re-code line two to avoid this problem?
TIA.