Count Property
Applies To
Axes Collection object, ChartGroups Collection object, DataLabels Collection object, LegendEntries Collection object, Points Collection object, SeriesCollection Collection object, Trendlines Collection object.
Description
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."