Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have created a User Form for data entry, some of the boxes in which contain
text, as a guide of what to enter. Is there a way, when the user tabs to these boxes, to highlight/select the text so it is overwritten when they type, as opposed to the them manually selecting and deleting the text before entering? I'm sure I saw something somewhere, but I can't find it now when I need it (typical!). Thanks, Alan |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Private Sub TextBox1_Enter()
With Me.TextBox1 .SelStart = 0 .SelLength = Len(.Text) .SetFocus End With End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Alan Smith" wrote in message ... I have created a User Form for data entry, some of the boxes in which contain text, as a guide of what to enter. Is there a way, when the user tabs to these boxes, to highlight/select the text so it is overwritten when they type, as opposed to the them manually selecting and deleting the text before entering? I'm sure I saw something somewhere, but I can't find it now when I need it (typical!). Thanks, Alan |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Bob, that worked a treat!
"Bob Phillips" wrote: Private Sub TextBox1_Enter() With Me.TextBox1 .SelStart = 0 .SelLength = Len(.Text) .SetFocus End With End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Alan Smith" wrote in message ... I have created a User Form for data entry, some of the boxes in which contain text, as a guide of what to enter. Is there a way, when the user tabs to these boxes, to highlight/select the text so it is overwritten when they type, as opposed to the them manually selecting and deleting the text before entering? I'm sure I saw something somewhere, but I can't find it now when I need it (typical!). Thanks, Alan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding a new text box to user form | Excel Discussion (Misc queries) | |||
Trying to select a specific range based on the time value of user form input | New Users to Excel | |||
User Form: Cannot Update Text Box | Excel Discussion (Misc queries) | |||
user form question: text box to display result | Excel Discussion (Misc queries) | |||
user form question: text box to display result | Excel Worksheet Functions |