Edit

Share via


Count property (Excel Graph)

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

Syntax

expression.Count

expression Required. An expression that returns one of the objects in the Applies To list.

Example

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

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

Support and feedback

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.