Condividi tramite


Worksheet.ChartObjects(Object) Method

Definition

Gets an object that represents either a single embedded chart (a ChartObject) or a collection of all the embedded charts (a ChartObjects) on the worksheet.

public object ChartObjects (object Index);
abstract member ChartObjects : obj -> obj
Public Function ChartObjects (Optional Index As Object) As Object

Parameters

Index
Object

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

Returns

An object that represents either a single embedded chart (a ChartObject) or a collection of all the embedded charts (a ChartObjects) on the worksheet.

Remarks

This method is not equivalent to the Charts property. This method returns embedded charts; the Charts property returns chart sheets.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to