Find.ParagraphFormat property (Word)

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.

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

See also

Find Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.