I am trying to delete all rows in Column E that contain 0. It is formatted as Currency and is giving me some issues.
Here is the code I am currently using but it is not working:
' Delete Anything in Column E with a hyphen
Dim e As Range
Dim rngToDelete2 As Range
With Worksheets(5).Range("E1:E2000")
Set e = .Find("0", LookIn:=xlValues)
If Not e Is Nothing Then
firstAddress = e.Address
Do
If rngToDelete2 Is Nothing Then
Set rngToDelete2 = e
Else
Set rngToDelete2 = Union(rngToDelete2, e)
End If
Set e = .FindNext(e)
If e Is Nothing Then Exit Do
Loop While e.Address <> firstAddress
End If
End With
If Not rngToDelete2 Is Nothing Then rngToDelete2.EntireRow.Delete
Not sure why, this works for other columns that contain hyphens or 0. Any help is appreciated.