Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to activate a text box
I have a form that contains a text box and some other controls. After a
user uses one of the other controls, I would like to activate the text box so that the user can immediately type in it without clicking it first. Thanks for any help! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to activate a text box
It depends on the control. For an option button:
Private Sub OptionButton1_Click() Me.TextBox1.SetFocus End Sub Or for another textbox: Private Sub TextBox1_Change() If Len(Me.TextBox1.Text) = 4 Then Me.TextBox2.SetFocus End If End Sub -- Dan |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to activate a text box
Thanks - that works great!
On Thu, 15 Nov 2007 08:15:21 -0800 (PST), "Dan R." wrote: It depends on the control. For an option button: Private Sub OptionButton1_Click() Me.TextBox1.SetFocus End Sub Or for another textbox: Private Sub TextBox1_Change() If Len(Me.TextBox1.Text) = 4 Then Me.TextBox2.SetFocus End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't activate an add-ins | Setting up and Configuration of Excel | |||
Windows().Activate vs Workbooks().Activate | Excel Programming | |||
Workbook.Activate / Window.Activate problem | Excel Programming | |||
adding text path via macro to activate hyperlink | Excel Programming | |||
Activate Column after locating text in a row | Excel Programming |