Hi, I cannot get this statement to work correctly. What I would like to do is examine column three for values equaling zero. I would like to then delete any rows containing a zero in that column.
Dim intRow As Integer
Dim intCol As Integer
intRow = 2
intCol = 3
Cells(intRow, intCol).Activate 'cell 3
Do Until intRow > 4000 'do this until 4001
If Val(Cells(intRow, intCol).Value) = 0 Then
Selection.EntireRow.Delete
End If
intRow = intRow + 1
Cells(intRow, intCol).Activate
Loop
End Sub
Any help would be appreciated.
Thanks, Dan
Dim intRow As Integer
Dim intCol As Integer
intRow = 2
intCol = 3
Cells(intRow, intCol).Activate 'cell 3
Do Until intRow > 4000 'do this until 4001
If Val(Cells(intRow, intCol).Value) = 0 Then
Selection.EntireRow.Delete
End If
intRow = intRow + 1
Cells(intRow, intCol).Activate
Loop
End Sub
Any help would be appreciated.
Thanks, Dan