find a character in a string

C

captain bob

bl3 = UCase(bl1) 'change to uper case

If bl3 = "@" Then
bl3 = Clear
End
End If


I am trying to use the above to search for a @ in an email string. I
does not work.

What can I do to look for a character @ and if I do not find it delet
the string
 
M

mcg

captain bob napisal(a):
bl3 = UCase(bl1) 'change to uper case

If bl3 = "@" Then
bl3 = Clear
End
End If


I am trying to use the above to search for a @ in an email string. It
does not work.

What can I do to look for a character @ and if I do not find it delete
the string?


If Not bl3 Like "*@*" Then bl3 = ""
mcg
 

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

Top