Range.InsertAlignmentTab method (Word)

Inserts an absolute tab that is always positioned in the same spot, relative to either the margins or indents.

Syntax

expression. InsertAlignmentTab( _Alignment_ , _RelativeTo_ )

expression An expression that returns a Range object.

Parameters

Name Required/Optional Data type Description
Alignment Required Long Indicates the type of alignment—left, center, or right—for the tab stop. Can be one of the WdAlignmentTabAlignment constants.
RelativeTo Optional Long Indicates whether the tab stop is relative to the margins or to the paragraph indents. Can be one of the WdAlignmentTabRelative constants.

Example

The following example inserts an alignment tab at the Insertion Point.

Selection.Range.InsertAlignmentTab 1, 1

See also

Range Object

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.