Table of contents
TOC
Collapse the table of content
Expand the table of content

Year.Months Property (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets a Months collection representing the months in a year. Read-only Months.

Syntax

expression. Months

expression An expression that returns a Year object.

Example

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
© 2018 Microsoft