ListParagraphs Property

Microsoft Word Visual Basic

ListParagraphs Property

       

Returns a ListParagraphs collection that represents all the numbered paragraphs in the list, document, or range. Read-only.

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

This example adds a yellow background to each numbered or bulleted paragraph in the first document.

For Each numpar In Documents(1).ListParagraphs
    numpar.Shading.BackgroundPatternColorIndex = wdYellow
Next numpar

This example double underlines the paragraphs in the second list in the active document.

For Each mypara In ActiveDocument.Lists(2).ListParagraphs
    mypara.Range.Underline = wdUnderlineDouble
Next mypara