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

Hey guys

I have done this in the past but I forgot. After I set
focus to textbox1, I need it to highlight all the text in
textbox1.

How do I do this?

Thanks
Todd Huttenstine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Select text in textbox

Private Sub CommandButton1_Click()
TextBox2.SetFocus
TextBox2.SelStart = 0
TextBox2.SelLength = Len(TextBox2.Value)

End Sub

--
Regards,
Tom Ogilvy


"Todd Huttenstine" wrote in message
...
Hey guys

I have done this in the past but I forgot. After I set
focus to textbox1, I need it to highlight all the text in
textbox1.

How do I do this?

Thanks
Todd Huttenstine



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Select text in textbox

thanks
-----Original Message-----
Private Sub CommandButton1_Click()
TextBox2.SetFocus
TextBox2.SelStart = 0
TextBox2.SelLength = Len(TextBox2.Value)

End Sub

--
Regards,
Tom Ogilvy


"Todd Huttenstine"

wrote in message
...
Hey guys

I have done this in the past but I forgot. After I set
focus to textbox1, I need it to highlight all the text

in
textbox1.

How do I do this?

Thanks
Todd Huttenstine



.

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
Textbox text visibility bcelestia Excel Discussion (Misc queries) 2 January 11th 07 08:47 AM
select from combobox and show a price in textbox gem New Users to Excel 1 June 14th 06 11:37 AM
select range textbox limitations harshad naik Excel Programming 0 September 16th 04 09:29 PM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM
Printing textbox text libby Excel Programming 1 August 13th 03 10:01 PM


All times are GMT +1. The time now is 10:21 PM.

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

About Us

"It's about Microsoft Excel"