ListLevelNumber Property

Microsoft Word Visual Basic

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.

ShowListLevelNumber 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

ShowAs 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
				

ShowAs it applies to the Style object.

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

Msgbox ActiveDocument.Styles(wdStyleHeading3).ListLevelNumber