#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default 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
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 moves position when Printing? Rugdoody Excel Discussion (Misc queries) 1 September 21st 05 09:42 PM
Legnth of text in textbox control rgarber50 Excel Discussion (Misc queries) 3 July 15th 05 02:18 PM
textbox scrollbar disappears Yaniv Excel Discussion (Misc queries) 1 June 20th 05 11:31 PM
Rich Textbox M.Siler Excel Discussion (Misc queries) 8 May 5th 05 07:25 PM
manipulating textbox in chart Peter Hafner Charts and Charting in Excel 0 January 31st 05 10:55 AM


All times are GMT +1. The time now is 04:02 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"