Find.ParagraphFormat Property

Word Developer Reference

Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified find operation. Read/write.

Syntax

expression.ParagraphFormat

expression   A variable that represents a Find object.

Example

This example finds all double-spaced paragraphs in the active document and replaces the formatting with 1.5-line spacing.

Visual Basic for Applications
  With ActiveDocument.Content.Find
    .ClearFormatting
    .ParagraphFormat.Space2
    .Replacement.ClearFormatting
    .Replacement.ParagraphFormat.Space15
    .Execute FindText:="", ReplaceWith:="", _
        Replace:=wdReplaceAll
End With

See Also