24 | 03 | 2017

Highlight text on Gotfocus

 When a textbox gets focus you can use the code below to automaicly select the whole text.

Sub Text1_GotFocus()
'***************************************
'**** Code from VisibleVisual.com ******
'***************************************
Text1.SelStart = 0
Text1 = SelLength = Len(Text1)

End Sub
Login

Sign up now and upload your code to the website.

Help us to continue.....
Statistics
Articles View Hits
2206796
Latest Articles