ListOutdent Method

Microsoft Word Visual Basic

ListOutdent Method

       

Decreases the list level of the paragraphs in the range for the specified ListFormat object, in increments of one level.

expression.ListOutdent

expression   Required. An expression that returns a ListFormat object.

Example

This example reduces the indent of each paragraph in first list in the active document by one level.

ActiveDocument.Lists(1).Range.ListFormat.ListOutdent

This example formats paragraphs four through eight in the active document as an outline-numbered list, indents the paragraphs one level, and then removes the indent from the first paragraph in the list.

Dim docActive As Document
Dim rngTemp As Range

Set docActive = ActiveDocument

Set rngTemp = _
    docActive.Range( _
    Start:=docActive.Paragraphs(4).Range.Start, _
    End:=docActive.Paragraphs(8).Range.End)

With rngTemp.ListFormat
    .ApplyOutlineNumberDefault
    .ListIndent
End With

docActive.Paragraphs(4).Range.ListFormat.ListOutdent