Share via


Range.InsertAlignmentTab Method

Word Developer Reference

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.

Visual Basic for Applications
  Selection.Range.InsertAlignmentTab 1, 1

See Also