ListLevelNumber Property

Microsoft Word Visual Basic

Show All

ListLevelNumber Property

       

ListLevelNumber property as it applies to the ListFormat object.

Returns or sets the list level for the first paragraph in the specified ListFormat object. Read/write Long.

expression.ListLevelNumber

expression   Required. An expression that returns a ListFormat object.

ListLevelNumber property as it applies to the Style object.

Returns the list level for the specified style. Read-only Long.

expression.ListLevelNumber

expression   Required. An expression that returns a Style object.

Example

As it applies to the ListFormat object. 

This example returns the list level for the third paragraph in the active document.

lev = ActiveDocument.Paragraphs(3).Range.ListFormat.ListLevelNumber

As it applies to the Style object.

This example displays the list level for the Heading 3 style.

Msgbox ActiveDocument.Styles(wdStyleHeading3).ListLevelNumber