Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Advancing Cursor
I have a userform with a combobox and two text boxes. Currently, I can only
advance the cursor from one box to another with the right tab key. How can I change it so that the ENTER key advances the cursor to the next box? Thanks, Les |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Advancing Cursor
Use the Keydown event of TextBox1 as
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = 13 Then TextBox2.SetFocus End Sub Hope this helps!! -- Pranav Vaidya VBA Developer PN, MH-India If you think my answer is useful, please rate this post as an ANSWER!! "WLMPilot" wrote: I have a userform with a combobox and two text boxes. Currently, I can only advance the cursor from one box to another with the right tab key. How can I change it so that the ENTER key advances the cursor to the next box? Thanks, Les |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Advancing Cursor
In the properties window of the VBE, set the EnterKeyBehavior to False for each text box. -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "WLMPilot" wrote in message I have a userform with a combobox and two text boxes. Currently, I can only advance the cursor from one box to another with the right tab key. How can I change it so that the ENTER key advances the cursor to the next box? Thanks, Les |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i keep the cursor from advancing after enter | Excel Discussion (Misc queries) | |||
Advancing One row without enter | Excel Discussion (Misc queries) | |||
Advancing formula | Excel Worksheet Functions | |||
Getting values in row and advancing | Excel Programming | |||
Advancing Timing | Excel Discussion (Misc queries) |