Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 908 Bytes

Project.Years.Count.md

File metadata and controls

41 lines (23 loc) · 908 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Years.Count property (Project)
project-server
Project.Years.Count
6a65ff7b-55ca-31e0-0edd-c2f75cb9fc74
06/08/2017
medium

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

Years Collection Object

[!includeSupport and feedback]