Specifies the position of a single object in the form's tab order.
object.TabIndex [= Integer ]
The TabIndex property syntax has these parts:
|object||Required. A valid object.|
|Integer||Optional. An integer from 0 to one less than the number of controls on the form that have a TabIndex property. Assigning a TabIndex value of less than 0 generates an error. If you assign a TabIndex value greater than the largest index value, the system resets the value to the maximum allowable value.|
The index value of the first object in the tab order is zero.
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.