CopyFormat Property

The CopyFormat method copies the object or selection's properties to the clipboard. Use the PasteFormat command on another object to set the properties the same as the copied format object.

Syntax

object.CopyFormat

Example 1

This example demonstrates how to copy the Y Axis properties to the clipboard and paste to the X Axis.

YAxis.CopyFormat

XAxis.PasteFormat

Example 2

This example demonstrates how to copy the selected object's properties to the clipboard.

Plot1.Selection.CopyFormat

 

Used by: AutoSelection collection, AutoShape Object