Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Could someone please tell me how to highlight the text in
a textbox on a form? My textbox has just the number 1 in it, and when the form is initialized, I'd like the focus on that textbox, with the number 1 highlighted. Thank you very much Daniel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Check out OLHelp for Seltext. SelLength, etc
-- HTH Roger Shaftesbury (UK) "Daniel Bonallack" wrote in message ... Could someone please tell me how to highlight the text in a textbox on a form? My textbox has just the number 1 in it, and when the form is initialized, I'd like the focus on that textbox, with the number 1 highlighted. Thank you very much Daniel |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub UserForm_Initialize()
TextBox1.SelStart = 0 TextBox1.SelLength = Len(TextBox1.Text) End Sub -Brad -----Original Message----- Could someone please tell me how to highlight the text in a textbox on a form? My textbox has just the number 1 in it, and when the form is initialized, I'd like the focus on that textbox, with the number 1 highlighted. Thank you very much Daniel . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you
-----Original Message----- Private Sub UserForm_Initialize() TextBox1.SelStart = 0 TextBox1.SelLength = Len(TextBox1.Text) End Sub -Brad -----Original Message----- Could someone please tell me how to highlight the text in a textbox on a form? My textbox has just the number 1 in it, and when the form is initialized, I'd like the focus on that textbox, with the number 1 highlighted. Thank you very much Daniel . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
highlighting text | Excel Discussion (Misc queries) | |||
highlighting text | Excel Discussion (Misc queries) | |||
Highlighting Textbox | Excel Programming | |||
Highlighting or Selecting TextBox entry | Excel Programming | |||
check variable(text) with cell (text), textbox | Excel Programming |