Set Tab to specific textbox control

M

mandy_less

Hi all,

Would anyone kindly point out how to set the tab control to a specific
textbox in a form?

Thanks in advance...
 
R

Robin Hammond

Mandy,

I'm guessing you mean how do you control the tab order in a form.

Select the textbox, under properties, set tabstop to TRUE, set the TabIndex
to the order in which you want the textbox to be tabbed to. Set tabstop to
false for things you don't want to tab to. Set Default to true for your OK
button, Cancel to true for you cancel button.

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in
 
M

mandy_less

Hi again,

I have set the TabOrder, the TabStop of a specific textbox to True and
the rest of the textboxes to False. However, after displaying some
results, the tab still returns to the previous textbox.

For example, suppose that I want the tab to stop at textbox2. After
populating the results in textbox1, the tab returns to textbox1 even
though * UserForm.textbox1.TabStop = False * and *
UserForm.textbox2.TabStop = True *

Can anyone please advice?

Thanks yah!!! (",)
 
M

mandy_less

Hi,

In case u guys have the problem...
I have found a solution that I want to share...

UserForm.TextBox.Enabled = True
UserForm.TextBox.SetFocus

That shld solve the prob!!!

Cheerios...
 

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