Document.ListParagraphs Property

Word Developer Reference

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

See Also