Count Property

Returns the number of objects in the specified collection. Read-only Long.

Example

This example displays the number of chart groups in the chart.

MsgBox "The chart contains " & _
    myChart.ChartGroups.Count & _
    " chart groups."

Applies to | Axes Collection | ChartGroups Collection Object | DataLabels Collection Object | LegendEntries Collection Object | Points Collection Object | SeriesCollection Collection Object | Trendlines Collection Object