Hi
Set a reference to the found cell and then check whether the found cell actually exists (ie whether the searched for term was found):
Dim rFound As Range
Set rFound = Nothing
Set rFound = Activesheet.Cells.Find(What:="SomeStringl", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
'note no .Activate on the end of the above statement!!
'now check if the term was found:
If Not rFound Is Nothing then 'if it isn't nothing then it's something ie it was found
'search term found
Else
'term not found
End If
Make sense?
Richard[/code]
Bookmarks