ListLevel.NumberStyle property (Word)
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.
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.
For Each lt In ActiveDocument.ListTemplates
For Each ll In lt.listlevels
ll.NumberStyle = wdListNumberStyleUppercaseLetter
Next ll
Next lt
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.