Hi,
what is the VBA code for highlighting the textbox when selected?
I want to have system highlight the textbox when user is inputing the information in that textbox
textbox_gotfocus()?
Hi,
what is the VBA code for highlighting the textbox when selected?
I want to have system highlight the textbox when user is inputing the information in that textbox
textbox_gotfocus()?
If it's a worksheet textbox :-
If it's a userform :-![]()
Private Sub TextBox1_GotFocus() TextBox1.BackColor = &HC0FFC0 End Sub Private Sub TextBox1_LostFocus() TextBox1.BackColor = &HFFFFFF End Sub
![]()
Private Sub TextBox1_Enter() TextBox1.BackColor = &HC0FFC0 End Sub Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1.BackColor = &HFFFFFF End Sub
Last edited by AndyLitch; 02-10-2014 at 07:38 PM.
Elegant Simplicity............. Not Always
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks