Replacement.ParagraphFormat Property (Word)

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

Syntax

expression. ParagraphFormat

expression A variable that represents a 'Replacement' 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

Replacement Object