How to tab between text-boxes?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I enter text into text-boxes, I want to be able to jump from one textbox to another simply by using the tab button
Is this possible? Is it also possible to decide in which order to jump? The textboxes are created using the design view and they have no code attached

Thank
 
Textboxes on a worksheet ? You have to program it for each and every box.
Rightclick the box, "view code", paste this in:

Private Sub TextBox1_KeyDown(ByVal KeyCode _
As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 9 Then TextBox2.Activate
End Sub

(This will err in Excel97 due to a minor bug)
--
HTH. Best wishes Harald
Followup to newsgroup only please

SOSK said:
When I enter text into text-boxes, I want to be able to jump from one
textbox to another simply by using the tab button.
Is this possible? Is it also possible to decide in which order to jump?
The textboxes are created using the design view and they have no code
attached.
 

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

Similar Threads


Back
Top