Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find out if a string is inside another

Status
Not open for further replies.

PhilippeSignoret

Programmer
May 19, 2001
21
MX
I know this is a repetition, but I messed up with the subject on the last one.

I want to do something like:

Dim stuff as String
If stuff has " in it Then
Msgbox stuff & " is a website!"
Else
Msgbox stuff & " is not a website!"
End If

Can anyone help me with this?
Thanks!
Philippe
 
if instr(stuff," then
Msgbox stuff & " is a website!"
Else
Msgbox stuff & " is not a website!"
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top