Class ListParagraphs (Word VBA)

A collection of Paragraph objects that represents the paragraphs of the specified document, list, or range that have list formatting applied. To use a ListParagraphs class variable it first needs to be instantiated, for example


Dim lps as ListParagraphs
Set lps = ActiveDocument.Lists(1).ListParagraphs

For Each

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


Dim prgListParagraph As Paragraph
For Each prgListParagraph In ActiveDocument.Lists(1).ListParagraphs
	
Next prgListParagraph

Count

Returns a Long that represents the number of list paragraphs in the collection.


Dim lngCount As Long
lngCount = ActiveDocument.Lists(1).ListParagraphs.Count

Item

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