"not found"

S

spoefi

Hi,

does anybody know the property which says a string has not been found?

I want to search a string, but if it hasn't been found, a certai
statement has to be executed.

thanks,
spoef
 
F

Frank Kabel

Hi
you may post your existing code. Do you want this after
the excution of the Find method?
 
E

Earl Kiosterud

Spoefi,


If Selection.Find("boo") is Nothing

You might use it, to wit:

If Selection.Find("boo") is Nothing then
Msgbox "Alas, it exists not."
MsgBox "No one hears your screams."
else
MsgBox "Huzzah! It has been found"
End if
 
Top