| SEARCHING FOR TEXT IN A TEXT BOX AND HIGHLIGHTING IT, IF FOUND. Dim Search, Where ' Declare variables. ' Get search string from user. Search = InputBox("Enter text to be found:") Where = InStr(Text1.Text, Search) ' Find string in text. If Where Then ' If found, Text1.SelStart = Where - 1 ' set selection start Text1.SelLength = Len(Search) ' set selection length. Else MsgBox "String not found." ' Notify user. End If |
Searching for text |
Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design