Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 837 Bytes

Project.Year.Months.md

File metadata and controls

44 lines (28 loc) · 837 Bytes
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Year.Months property (Project)
vbapj.chm132416
vbapj.chm132416
project-server
Project.Year.Months
615a4f5c-bda7-f684-1c29-d8003badf3a8
06/08/2017
medium

Year.Months property (Project)

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

[!includeSupport and feedback]