Enzo_Matrix
Board Regular
- Joined
- Jan 9, 2018
- Messages
- 113
morning,
I have a table and I want to delete entire rows, if there is any value in them. I've come this far, by modifying previous code I have, but need some help changing the "void" to search for any number in that field.
I have a table and I want to delete entire rows, if there is any value in them. I've come this far, by modifying previous code I have, but need some help changing the "void" to search for any number in that field.
Code:
Sub DeleteShip()
Dim c As Range
Dim SrchRng
Set SrchRng = ActiveSheet.Range("I1", ActiveSheet.Range("I65536").End(xlUp))
Do
Set c = SrchRng.Find("Void", LookIn:=xlValues)
If Not c Is Nothing Then c.EntireRow.Delete
Loop While Not c Is Nothing
End Sub