ChartObjects Method

See Also         Example         Applies To

Returns an object that represents either a single embedded chart (a ChartObject object, Syntax 1) or a collection of all the embedded charts (a ChartObjects object, Syntax 2) on the sheet.

Syntax 1

expression.ChartObjects(Index)

Syntax 2

expression.ChartObjects

expression   Required. An expression that returns an object in the Applies To list. If you specify a Chart object, it must be a chart sheet (it cannot be an embedded chart).

Index   Optional Variant. The name or number of the chart. This argument can be an array, to specify more than one chart.

Remarks

This method isn't equivalent to the Charts property. This method returns embedded charts; the Charts property returns chart sheets. Use the Chart property to return the Chart object for an embedded chart.