Partager via


Paragraphs.Count Property

Word Developer Reference

Returns a Long that represents the number of paragraphs in the collection. Read-only.

Syntax

expression.Count

expression   Required. A variable that represents a Paragraphs collection.

Example

This example displays the number of paragraphs in the active document.

Visual Basic for Applications
  MsgBox "The active document contains " & _
    ActiveDocument.Paragraphs.Count  & " paragraphs."

See Also