Class ListLevels (Word VBA)
A collection of ListLevel objects that represents all the list levels of a list template, either the only level for a bulleted or numbered list or one of the nine levels of an outline numbered list. To use a ListLevels class variable it first needs to be instantiated, for example
Dim lls as ListLevels
Set lls = ActiveDocument.ListTemplates(1).ListLevels
For Each
Here is an example of processing the ListLevels items in a collection.
Dim lll As ListLevel
For Each lll In ActiveDocument.ListTemplates(1).ListLevels
Next lll
Count
Returns a Long that represents the number of list levels in the collection.
Dim lngCount As Long
lngCount = ActiveDocument.ListTemplates(1).ListLevels.Count
Item
Returns an individual ListLevel object in a collection.
Item (Index)
Index: The individual object to be returned. Can be a Long indicating the ordinal position of the individual object.
Dim lll As ListLevel
Set lll = ActiveDocument.ListTemplates(1).ListLevels(Index:=1)