Collapse the table of content
Expand the table of content
Expand Minimize

Selection.CopyFormat Method (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Copies the character formatting of the first character in the selected text.

expression .CopyFormat

expression Required. A variable that represents a Selection object.

If a paragraph mark is selected, Word copies paragraph formatting in addition to character formatting. You can apply the copied formatting to another selection by using the PasteFormat method.

This example copies the formatting of the first paragraph to the second paragraph in the active document.


This example collapses the selection and copies its character formatting to the next word.

With Selection 
 .Collapse Direction:=wdCollapseStart 
 .Next(Unit:=wdWord, Count:=1).Select 
End With
© 2015 Microsoft