Set Tab Order in User form

S

sam

Hi All,

How can we set a Tab order in User form? what i mean is, If I hit tab on
keyboard, I want the cursor to point to the field next to it.

Thanks in Advance.
 
J

jamescox

Controls on a userform have two tab-related properties: TabStop which is
a
True/False boolean and TabIndex, which is an integer that controls
which control gets focus as the Tab key is pressed. You can't have two
controls that have the same TabIndex value, so it works best to start
numbering them at the last control you would want to have focus and work
your way back up to 1...

BTW, if TabStop is False, you can't tab to that control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top