Tab order in a user form

T

TimN

When you set the Tab Index in the Properties area for a ComboBox/TextBox etc.
Is there a way to have a box skipped?

I have 4 boxes plus an OK and Cancel button. I would like to have the Tab
order of the boxes be as follows:
1
skip 2
3
4
OK
Cancel.

Can I do that?
 
B

baj

TimN schreef:
When you set the Tab Index in the Properties area for a ComboBox/TextBox etc.
Is there a way to have a box skipped?

I have 4 boxes plus an OK and Cancel button. I would like to have the Tab
order of the boxes be as follows:
1
skip 2
3
4
OK
Cancel.

Can I do that?

If I understand it right you must have the order :
1
3
4
OK
Cancel
2(skip)

So you look at the userform in your editor, then you put you cursor on
object 1, and in the properties you put TabIndex on 0, then you go to
object 3 and you select Tabindex and put it on 0 again, then you go to
object 4.... etc... automatically Object 2 will get the highest
Tabindex and won't be selected because object OK and object Cancel are
in between...
I hope this works good enough for you ?

Greetings,
Baj
 
B

Bob Phillips

Private Sub TextBox2_Enter()
Me.TextBox3.SetFocus
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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