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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

ParamRay

Well-known Member
Joined
Aug 6, 2014
Messages
1,195
.
.

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

ParamRay

Well-known Member
Joined
Aug 6, 2014
Messages
1,195
.
.

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

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
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,191,707
Messages
5,988,230
Members
440,139
Latest member
ngaicuong2017

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
Top