Problem tabbing through a UserForm in order

nkemp15

New Member
Joined
Jan 31, 2014
Messages
36
I have a UserForm with lots of drop downs and text boxes. Currently if filling out the form and hitting tab, it will go through all the textboxes first, then start back at the top and tab through the drop downs.

Is there a way to arrange each field so it starts at the beginning and works it's way through in the order that I added them?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
.
.

If you view the code in your UserForm's module, there's a property called TabIndex. Click on each control and give the tab index a number from 1 to however many controls you have in your user form. That way, pressing the tab key on the keyboard cycles through the controls in order of the tab index...
 
Upvote 0
.
.

If you view the code in your UserForm's module, there's a property called TabIndex. Click on each control and give the tab index a number from 1 to however many controls you have in your user form. That way, pressing the tab key on the keyboard cycles through the controls in order of the tab index...


If you have lots of frames in your user form then you also have to set the tab index for each frame...
 
Upvote 0
Right click the form, select Tab Order and move the controls up/down as needed using the arrow buttons.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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