"not found"

  • Thread starter Thread starter spoefi
  • Start date Start date
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
 
Hi
you may post your existing code. Do you want this after
the excution of the Find method?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top