This documentation is archived and is not being maintained.

Document.ListParagraphs Property

Office 2007
Returns a ListParagraphsobject that represents all the numbered paragraphs in a document. Read-only.

Syntax

expression.ListParagraphs

expression   An expression that returns a Document object.

Remarks

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

Example

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

Visual Basic for Applications
For Each numpar In Documents(1).ListParagraphs
    numpar.Shading.BackgroundPatternColorIndex = wdYellow
Next numpar



Show: