Deleting rows within a named range
I have the following code
For Each r In myRange
If LCase(oWS.Name) = "status" Then
Debug.Print r.Address, myRange.Address
If r.Text < fNameNew Then
r.EntireRow.Delete
End If
End If
Next r
Let's say myRange.address = B5:B23
If row 6 is deleted, the next r.address that's reviewed is B7, not a repeat
of B6. What do I need to do to fix this?
Thanks,
Barb Reinhardt
|