Selection.PasteFormat Method
Word Developer Reference |
Applies formatting copied with the CopyFormat method to the selection.
Syntax
expression.PasteFormat
expression Required. A variable that represents a Selection object.
Remarks
If a paragraph mark was selected when the CopyFormat method was used, Word applies paragraph formatting in addition to character formatting.
Example
This example copies the paragraph and character formatting from the first paragraph in the selection to the next paragraph in the selection.
Visual Basic for Applications |
---|
|
This example collapses the selection and copies the character formatting to the next word.
Visual Basic for Applications |
---|
|
See Also