TextBox.AutoTab Property (Outlook Forms Script)

Returns or sets a Boolean that specifies whether an automatic tab occurs when a user enters the maximum allowable number of characters into a TextBox. Read/write.

Syntax

expression.AutoTab

expression A variable that represents a TextBox object.

Remarks

True if tab occurs, False otherwise (default).

The MaxLength property specifies the maximum number of characters allowed in a TextBox.

You can specify the AutoTab property for a TextBox 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 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.