title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Year.Months property (Project) |
vbapj.chm132416 |
|
project-server |
|
615a4f5c-bda7-f684-1c29-d8003badf3a8 |
06/08/2017 |
medium |
Gets a Months collection representing the months in a year. Read-only Months.
expression. Months
expression An expression that returns a Year object.
The following example makes January 1 of every year a nonworking day.
Sub NewYearsDayOff()
Dim Y As Year
For Each Y In ActiveProject.Calendar.Years
Y.Months(pjJanuary).Days(1).Working = False
Next Y
End Sub
[!includeSupport and feedback]