TabIndex on a UserForm

James

Active Member
Joined
Feb 17, 2002
Messages
327
Here's what i have:

A UserForm w/ 3 Frames
Frame1 has 4 CommandButtons,TabIndex is,0 CommandButton1, TabIndex = 0
CommandButton2, TabIndex = 1
CommandButton3, TabIndex = 2
CommandButton4, TabIndex = 3

Frame2 has 4 ToggleButtons, TabIndex is,1
ToggleButton1, TabIndex = 0
ToggleButton2, TabIndex = 1
ToggleButton3, TabIndex = 2
ToggleButton4, TabIndex = 3

Frame3 has 4 CheckBoxes, TabIndex is,3
CheckBox1, TabIndex = 0
CheckBox2, TabIndex = 1
CheckBox3, TabIndex = 2
CheckBox4, TabIndex = 3

Now when i activate the UserForm i should be able to with the TabKey starting in Frame1
move from left to right and move down to Frame2 Then to frame 3 and then back up to Frame1. It now jumps from the last CommandButton(4) and Skips Frame2 and goes to
Frame3, sorry for being so long winded i wanted to explain the whole senario.

James


_________________
This message was edited by James on 2002-05-08 16:28
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The Tab order is set by going to the objects properties and setting it's TabIndex number.
I.E. If you have two checkboxs , Check1 & Check2 make Check1.tabindex = 0 and check1.tabindex = 1 etc.
 
Upvote 0
Hi Nimrod,

I think what you meant to say:

I.E. If you have two checkboxs , Check1 & Check2 make Check1.tabindex = 0 and check2.tabindex = 1 etc.

What am i missing here, i think what your suggesting is exactly what i've already done?

James

_________________
This message was edited by James on 2002-05-08 16:34
 
Upvote 0
OK here's the difference the "fau paux":
When the UserForm is activated the ToggleButtons in Frame2 are "up", so.... if i use the "TabKey" starting in Frame1 it STILL skips Frame2 and jumps into Frame3. BUT if i click once on the 4 ToggleButtons in Frame2 FIRST and then go into Frame1 and use the "TabKey" everything works fine? So that tells me that before the UserForm is activated the ToggleButtons have to be an "inny" opposed to an "outy"

James
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,167
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top