DuplicateFormat Method

Microsoft Office Web Components Object Model

DuplicateFormat Method

       

Copies the formatting and type of the specified chart to other charts in the workspace that are bound to the same data source. This method can only be used when the chart control is bound to a relational data source list.

expression.DuplicateFormat

expression   Required. An expression that returns a ChChart object.

Remarks

The HasMultipleCharts property of the chart control must be set to True before using this method.

Example

This example copies the formatting of the first chart in Chartspace1 to all other charts in Chartspace1 that are bound to the same PivotTable list.

Chartspace1.Charts(0).DuplicateFormat