I no this is an easy one but...
How do I find a word in a text box? Or more to the point, how do I check if there is a certain word in the text box?
Thanks a whole heap...
Printable View
I no this is an easy one but...
How do I find a word in a text box? Or more to the point, how do I check if there is a certain word in the text box?
Thanks a whole heap...
Use the InStr Function:
vb Code:
If InStr(Text1.text,"Word") > 0 then 'Word was Found Else 'Word was Not Found End If
Use InStr$ FunctionEdit--Code:If InStr(Text1.Text, "myword") > -1 Then
MsgBox "Found"
End If
Sorr MG, didn't see your post earlier..
haha thanks... lol, i feel really dumb now. but yeah. thanks :) guess that was one of the easy stuff i never did... hehe thanks