Share via


Charts Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the ChCharts collection for the specified chart workspace.

expression.Charts

expression   Required. An expression that returns a ChartSpace object.

Remarks

By default, a new chart workspace contains no charts. After you create a new chart workspace, you must add a Chart object to it before you can create a chart. Use the Add method to create a new chart.

Example

This example adds a chart to the specified chart workspace.

  Set cht = ChartSpace1.Charts.Add