Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default textbox & tab

I have several textboxes that the user tabs through. I would like th
contents of the textbox to be highlighted (selected) whenever the use
tabs into a new textbox. is this possible. the way it is set up no
when the user tabs into a new textbox he/she has to backspace over th
contents to input new information.

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default textbox & tab

Private Sub TextBox2_Enter()
With TextBox2
.SelStart = 0
.SelLength = Len(.Text)
.SetFocus
End With
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"bforster1 " wrote in message
...
I have several textboxes that the user tabs through. I would like the
contents of the textbox to be highlighted (selected) whenever the user
tabs into a new textbox. is this possible. the way it is set up now
when the user tabs into a new textbox he/she has to backspace over the
contents to input new information.

Thanks.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default textbox & tab

For a userform, the default behavior of tabbing to a textbox is to highlight
the text already there. At least that has been my consistent experience.

--
Regards,
Tom Ogilvy

"bforster1 " wrote in message
...
I have several textboxes that the user tabs through. I would like the
contents of the textbox to be highlighted (selected) whenever the user
tabs into a new textbox. is this possible. the way it is set up now
when the user tabs into a new textbox he/she has to backspace over the
contents to input new information.

Thanks.


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Textbox value based on another textbox value.doc Tdungate Excel Discussion (Misc queries) 1 February 12th 09 07:11 PM
Calculate Textbox value based on another textbox value Tdungate Excel Discussion (Misc queries) 0 February 12th 09 07:03 PM
Textbox Greg Excel Discussion (Misc queries) 3 April 3rd 05 09:38 AM
to textbox Mark[_17_] Excel Programming 2 November 20th 03 08:46 AM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 07:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"