PDA

View Full Version : Solved: select txtbox



av8tordude
09-03-2009, 09:03 AM
I have a "yes/no" msgbox in a userform. If the user clicks "No", I would like the cursor to select the textbox 1 and highlight any data in the textbox (if applicable). Any help is greatly appreciatd. Thanks.

nst1107
09-03-2009, 09:42 AM
With TextBox1
.SelStart = 0
.SelLength = Len(.Value)
.SetFocus
End With

av8tordude
09-03-2009, 10:58 AM
thx NST :beerchug: