Count Property

Applies To

CodePanes collection, Properties collection, References collection, VBComponents collection, VBProjects collection.

Description

Returns a Long containing the number of items in a collection. Read-only.

Example

The following example uses the Count property to return the number of VBComponent objects in a particular project.

Debug.Print Application.VBE.VBProjects(1).VBComponents.Count