If you have a TextBox1 and TextBox2 the following code will Tab from TextBox1 to TextBox2 :
Code:
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, _
ByVal Shift As Integer)
If KeyCode = 9 Then TextBox2.Activate
End Sub
You can repeat the same idea for the second TextBox. Right click on the sheet with the TextBoxes, select View Code and enter the code in the resultant code pane.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.