Give me an exemple to find text in string.
Like "op" in "loop"
Tanks!
Redg
Printable View
Give me an exemple to find text in string.
Like "op" in "loop"
Tanks!
Redg
How about :
Dim sString as string
'
sString = "Chris Was Here"
'
If InStr(1, sString, "Here") > 0 then
MsgBox "Found It"
End If
'
' or...
'
If sString Like "*Here*" then
MsgBox "Found It"
End If
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb