Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
textbox tabbing?????
I have a worksheet which has several textbox. Is there a way to tab through
the textboxes without having to write a macro code? -- Hoyos |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
textbox tabbing?????
No you need code.
"Hoyos" wrote in message ... I have a worksheet which has several textbox. Is there a way to tab through the textboxes without having to write a macro code? -- Hoyos |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
textbox tabbing?????
Oh ok. You know whats coming next!!!
Bob.......... what would be the code then!!!!? -- Hoyos "Bob Phillips" wrote: No you need code. "Hoyos" wrote in message ... I have a worksheet which has several textbox. Is there a way to tab through the textboxes without having to write a macro code? -- Hoyos |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
textbox tabbing?????
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, _
ByVal Shift As Integer) Dim bBackwards As Boolean Select Case KeyCode ''' These are the only keys we care about. Case vbKeyTab, vbKeyReturn, vbKeyDown, vbKeyUp Application.ScreenUpdating = False ''' Determine if we need to move backwards. bBackwards = CBool(Shift And 1) Or (KeyCode = vbKeyUp) ''' In Excel 97 must select cell before activating another control. If Application.Version < 9 Then Sheet1.Range("A1").Select ''' Activate the appropriate control based on key(s) pressed. If bBackwards Then TextBox3.Activate Else TextBox2.Activate End If Application.ScreenUpdating = True End Select End Sub add similar code for each control. It goes in the sheet code module. "Hoyos" wrote in message ... Oh ok. You know whats coming next!!! Bob.......... what would be the code then!!!!? -- Hoyos "Bob Phillips" wrote: No you need code. "Hoyos" wrote in message ... I have a worksheet which has several textbox. Is there a way to tab through the textboxes without having to write a macro code? -- Hoyos |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Textbox moves position when Printing? | Excel Discussion (Misc queries) | |||
Legnth of text in textbox control | Excel Discussion (Misc queries) | |||
textbox scrollbar disappears | Excel Discussion (Misc queries) | |||
Rich Textbox | Excel Discussion (Misc queries) | |||
manipulating textbox in chart | Charts and Charting in Excel |