Month.Days property (Project)

Gets a Days collection representing the days in the month. Read-only Days.

Syntax

expression. Days

expression A variable that represents a Month 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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.