ListIndent Method

Microsoft Word Visual Basic

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

expression.ListIndent

expression    Required. An expression that returns a ListFormat object.

Example

This example indents each paragraph in the first list in document one by one level.

Documents(1).Lists(1).Range.ListFormat.ListIndent
		

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

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