Tab Stops

J

JT

On a form I have 2 textboxes within a frame. I also have 5 buttons for the
user.

I have the tabstops setup so that it flows from the textboxes through the 5
buttons. When you tab off of the last button, I want it to go to the first
textbox.

However, the user has to tab an extra time to get to the first textbox. I
think it is going to the frame that contains the 2 textboxes.

Is there anyway to make the tab skip the frame and go to the first textbox
from the last button?

Thanks for the help....
 
N

Nigel

Try using the control exit event to drive focus back to the required
control......

Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.SetFocus
End Sub
 

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