ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using VBA to move from one text box to another (https://www.excelbanter.com/excel-discussion-misc-queries/218130-using-vba-move-one-text-box-another.html)

BLevie

Using VBA to move from one text box to another
 
I have a worksheet that is made up of numerous text boxes and check boxes. I
want to simulate the tab function by jumping from the current text box to the
next one in line.

I tried to use the exp.setfocus command but it gives me a error.

I cannot find tab order or tab index in the properties field.

Any help is appreciated. Thank you in advance



Daniel.C[_3_]

Using VBA to move from one text box to another
 
Try :

Private Sub TextBox1_LostFocus()
ActiveSheet.TextBox2.Activate
End Sub

HTH
Daniel

I have a worksheet that is made up of numerous text boxes and check boxes. I
want to simulate the tab function by jumping from the current text box to the
next one in line.

I tried to use the exp.setfocus command but it gives me a error.

I cannot find tab order or tab index in the properties field.

Any help is appreciated. Thank you in advance





All times are GMT +1. The time now is 04:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com