Microsoft Word Suite
235
Command: copy format
Copies the character formatting of the first character in the selected text. If a paragraph mark is
selected, Word copies paragraph formatting in addition to character formatting.
Note You can apply the copied formatting to another selection by using the paste format
command.
Syntax
copy format selection Required. An expression that returns a selection object.
Example
This example copies the formatting of the first paragraph to the second paragraph in the active
document.
select text object of paragraph 1 of active document
copy format selection
select text object of paragraph 2 of active document
paste format selection
Command: copy object
Copies the content of the specified object to the Clipboard.
Syntax
copy object field/frame/form field/data merge field/selection object/page number Required. An
expression that returns a field, form field, frame, data merge field, page number, or selection
object.
Example
This example copies the contents of the selection into a new document.
if selection type of selection is selection normal then
copy object selection
make new document
paste object selection
end if
Command: copy styles from template
Copies styles from the specified template to a document.
Syntax
copy styles from template document Required. An expression that returns a document object.
template Unicode text Required. The template file name.
Remarks
When styles are copied from a template to a document, like-named styles in the document are
redefined to match the style descriptions in the template. Unique styles from the template are
copied to the document. Unique styles in the document remain intact.