Charts Property

Microsoft Office Web Components Visual Basic

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