title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Years.Count property (Project) |
project-server |
|
6a65ff7b-55ca-31e0-0edd-c2f75cb9fc74 |
06/08/2017 |
medium |
Gets the number of items in the Years collection. Read-only Integer.
expression.Count
expression A variable that represents a 'Years' object.
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.
[!includeSupport and feedback]