Years.Count property (Project)
Gets the number of items in the Years collection. Read-only Integer.
Syntax
expression.Count
expression A variable that represents a 'Years' object.
Remarks
The following statement prints 166 in the Immediate pane of the VBE. The value is the number of years from 1984 to and including 2149.
Print ActiveProject.Calendar.Years.Count
Use of the Count property in most collection objects is similar. For an example that uses the Years collection, see Years Object.
See also
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.