- Home
·
- Miscellaneous
·
- Automatically selecting text when Tab key is pressed in a Text Box
Automatically selecting text when Tab key is pressed in a Text Box
Automatically selecting text when Tab key is pressed in a Text Box
Rate Automatically selecting text when Tab key is pressed in a Text Box
(1(1 Vote))
'Name it text1 and text 2--default name
'paste the following code.
Private Sub text1_GotFocus()
SendKeys "{HOME}+{END}"
End Sub
Private Sub text2_GotFocus()
SendKeys "{HOME}+{END}"
End Sub
Automatically selecting text when Tab key is pressed in a Text Box Comments
No comments yet — be the first to post one!
Post a Comment