How Do I searech a TextBox !
Dim X
X = Inputbox("Type Stuff to Search")
WHATEVER THE CODE IS TO SEARCH TEXT1.Text
Printable View
How Do I searech a TextBox !
Dim X
X = Inputbox("Type Stuff to Search")
WHATEVER THE CODE IS TO SEARCH TEXT1.Text
What do you mean by search?
I dont understand with the information you gave.
Could you please explain more?
You have to elaborate a bit on it but it boils down to this:
Private Sub Command1_Click()
Dim strTextToSearch As String
strTextToSearch = InputBox("Enter text to search")
If InStr$(1, Text1, strTextToSearch) <> 0 Then
MsgBox "Found it"
else
MsgBox "Not there"
End If
End Sub
LAURENS Could you please explain the purpose of searching a text box..why would someone want to search a textbox? is it related to passwords? or security or spell checking?
The idea seems cool but i dont see a reason for it.
Thanks.
in school sometimes you have to read a text file into a text box...perhaps it's a learning curve and someone needs to search a textbox for a given string.
I don't know why Stick wants to search a textbox, I'm just trying to answer his question.
Ask him.
I want to search a text box cause my app. get's a list off the internet and need to make sure certain things are in their.
But what's it matter what I need it for thier may be other that will use this code to for other apps.
Thanks For Helping me out!