object.AutoTab [= Boolean ]
The AutoTab property syntax has these parts:
|object||Required. A valid object.|
|Boolean||Optional. Specifies whether an automatic tab occurs.|
The settings for Boolean are:
|False||Tab does not occur (default).|
The MaxLength property specifies the maximum number of characters allowed in a TextBox or the text box portion of a ComboBox.
You can specify the AutoTab property for a TextBox or ComboBox on a form for which you usually enter a set number of characters. Once a user enters the maximum number of characters, the focus automatically moves to the next control in the tab order. For example, if a TextBox displays inventory stock numbers that are always five characters long, you can use MaxLength to specify the maximum number of characters to enter into the TextBox and AutoTab to automatically tab to the next control after the user enters five characters.
Support for AutoTab varies from one application to another. Not all containers support this property.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.