Collapse the table of content
Expand the table of content
Expand Minimize

Range.InsertAlignmentTab Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

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.

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

Selection.Range.InsertAlignmentTab 1, 1

Concepts

Other resources

Show:
© 2016 Microsoft