Trap a find error
I have the following code. How can I most efficiently exit the function if no
target string is found?
strSearchColumn = "I:I"
strTarget = "0"
Set rngFind = Range(strSearchColumn).Find(strTarget,
SearchDirection:=xlPrevious)
strLastDeleteRow = rngFind.Row
Thanks in advance.
|