I have a macro that runs through one column checking for specific values. When it discovers the value, it deletes the row. The problem I have is that when it can't find the value it errors out. If I use On Error Resume Next it ends up deleting lines that I don't want deleted.
Here's the code:
How do I take care of the error in the 'find' statement and skip over the Row Delete if the string is not found?
Onwards,
Q-
Here's the code:
Code:
Cells.Find(What:="STRING", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
Selection.EntireRow.Delete
How do I take care of the error in the 'find' statement and skip over the Row Delete if the string is not found?
Onwards,
Q-