Syntax
PasteFormat
Remarks
Applies formatting copied with CopyFormat to the selection. If a paragraph mark was selected when CopyFormat was run, Word applies paragraph formatting in addition to character formatting.
Example
This example copies both character and paragraph formats from the current paragraph (selected using the predefined bookmark " \ Para"), and then applies only the paragraph formats to the next paragraph. Character formats are not applied because no text is selected when PasteFormat runs. ResetChar ensures that any new text typed at the insertion point has the font characteristics of the current style.
SelType 1 'Cancel selection, if any EditGoTo "\Para" CopyFormat ParaDown PasteFormat ResetChar
See Also
CopyFormat, ResetChar, ResetPara