_Chart.ChartObjects Method
Returns an object that represents either a single embedded chart (a ChartObject object) or a collection of all the embedded charts (a ChartObjects object) on the sheet.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function ChartObjects ( _
Index As Object _
) As Object
'Usage
Dim instance As _Chart
Dim Index As Object
Dim returnValue As Object
returnValue = instance.ChartObjects(Index)
Object ChartObjects(
Object Index
)
Parameters
Index
Type: System.ObjectOptional Object. The name or number of the chart. This argument can be an array to specify more than one chart.
Return Value
Type: System.Object
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.