Indent Method

Microsoft Word Visual Basic

Indent Method

       

Indents one or more paragraphs by one level.

Note   Using this method is equivalent to clicking the Increase Indent button on the Formatting toolbar.

expression.Indent

expression   Required. An expression that returns a Paragraph or Paragraphs object.

Example

This example indents all the paragraphs in the active document twice, and then it removes one level of the indent for the first paragraph.

With ActiveDocument.Paragraphs
    .Indent
    .Indent
End With
ActiveDocument.Paragraphs(1).Outdent