I have developed a subroutine to delete a single row if a particular cell content is zero and it works fine. I now need to adapt that subroutine so that if a particular cell is zero the current row + the next row is deleted and then it moves on to the next row to test again. Can someone tell me how to change the below subroutine to accomplish that? Thanks.
Denny Riffert
Evansville, IN
Range("D1").Select
Set CurrentCell = Range("D1")
For Count = 1 To 500
Set nextCell = CurrentCell.Offset(2, 0)
If CurrentCell.Value = 0 Then
CurrentCell.EntireRow.Delete
End If
Set CurrentCell = nextCell
Next Count
Bookmarks