Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UserForm Tab Order


Hello,

I have created a UserForm that over time I have had to add and move
around aspects of in order to complete the project.

Now my problem is that becuase I added to, took away, and moved fields
from the form as time progressed, the tab sequence is a "little off"
(big understatement). What is the process I need to use to alter the
tab order within VBA so that when the form is tabbed through that it
will go in the sequence that I desire.

Thank you in advance,

PZan


--
PokerZan
------------------------------------------------------------------------
PokerZan's Profile: http://www.excelforum.com/member.php...o&userid=23480
View this thread: http://www.excelforum.com/showthread...hreadid=389214

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default UserForm Tab Order

You could set the taborder in the userform initialize event, never need to
worry again

Private Sub Userform_Initialize()
With Me
.txtName.TabIndex = 1
.txtAddress.TabIndex = 2
.txtCity.TabIndex = 3
.txtState.TabIndex = 4
.txtZip.TabIndex = 5
.cmdOK.TabIndex = 6
.cmdCancel1.TabIndex = 7
End With
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"PokerZan" wrote in
message ...

Hello,

I have created a UserForm that over time I have had to add and move
around aspects of in order to complete the project.

Now my problem is that becuase I added to, took away, and moved fields
from the form as time progressed, the tab sequence is a "little off"
(big understatement). What is the process I need to use to alter the
tab order within VBA so that when the form is tabbed through that it
will go in the sequence that I desire.

Thank you in advance,

PZan


--
PokerZan
------------------------------------------------------------------------
PokerZan's Profile:

http://www.excelforum.com/member.php...o&userid=23480
View this thread: http://www.excelforum.com/showthread...hreadid=389214



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
How to change series plotting order without changing legend order? PatrickM Charts and Charting in Excel 6 December 2nd 09 07:43 PM
For chart syles, why doesn't color order match series order? AMiller Charts and Charting in Excel 1 October 29th 09 12:02 AM
How stop Excel file UK date order changing to US order in m.merge Roger Aldridge Excel Discussion (Misc queries) 1 October 9th 07 11:52 PM
Tab Order On A UserForm Minitman[_4_] Excel Programming 1 November 5th 04 11:01 PM
What order does VBA look at userform controls? Brad Patterson Excel Programming 3 July 17th 03 03:46 AM


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