ListLevel.NumberStyle Property

Word Developer Reference

Returns or sets the number style for the ListLevel object. Read/write WdListNumberStyle.

Syntax

expression.NumberStyle

expression   Required. A variable that represents a ListLevel object.

Remarks

Some of the WdListNumberStyle constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Example

This example creates an alternating number style for the third outline-numbered list template.

Visual Basic for Applications
  Set myTemp = ListGalleries(wdOutlineNumberGallery).ListTemplates(3)
For i = 1 to 9
    If i Mod 2 = 0 Then
        myTemp.ListLevels(i).NumberStyle = _
            wdListNumberStyleUppercaseRoman
    Else
        myTemp.ListLevels(i).NumberStyle = _
            wdListNumberStyleLowercaseRoman
    End If
Next i

This example changes the number style to uppercase letters for every outline-numbered list in the active document.

Visual Basic for Applications
  For Each lt In ActiveDocument.ListTemplates
    For Each ll In lt.listlevels
       ll.NumberStyle = wdListNumberStyleUppercaseLetter
    Next ll
Next lt

See Also