Document.ListParagraphs property (Word)
Returns a ListParagraphs object that represents all the numbered paragraphs in a document. Read-only.
expression. ListParagraphs
expression An expression that returns a Document object.
For information about returning a single member of a collection, see Returning a Single Object from a Collection.
This example adds a yellow background to each numbered or bulleted paragraph in the first document.
VB
For Each numpar In Documents(1).ListParagraphs
numpar.Shading.BackgroundPatternColorIndex = wdYellow
Next numpar
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.