Class Lists (Word VBA)

A collection of List objects that represent all the lists in the specified document. To use a Lists class variable it first needs to be instantiated, for example


Dim lsts as Lists
Set lsts = ActiveDocument.Lists

For Each

Here is an example of processing the Lists items in a collection.


Dim lst As List
For Each lst In ActiveDocument.Lists
	
Next lst

Count

Returns a Long that represents the number of lists in the collection.


Dim lngCount As Long
lngCount = ActiveDocument.Lists.Count

Item

Returns an individual List 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 lst As List
Set lst = ActiveDocument.Lists(Index:=1)