Count Property

The Count property returns the number of items in collection. Returns a Long. This is a read-only property.

Syntax

object.Count

object.Count =Count

 

Example

This example demonstrates how to return the number of objects in the AutoShapes collection.

Debug.Print Shapes.Count

 

Used by: AutoAxes collection, AutoDocWindows collection, AutoPlotWindow object, AutoFits collection, AutoLegends collection, AutoPlots collection, AutoShapes collection, AutoWindows collection, Documents collection, AutoSelection collection