Count property (Excel Graph)
Returns the number of objects in the specified collection. Read-only Long.
expression.Count
expression Required. An expression that returns one of the objects in the Applies To list.
This example displays the number of chart groups in the chart.
MsgBox "The chart contains " & _
myChart.ChartGroups.Count & _
" chart groups."
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.