Month.Days Property

Project Developer Reference

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

Syntax

expression.Days

expression   A variable that represents a Month object.

Return Value
Days

Example
The following example makes January 1 of every year a nonworking day.

Visual Basic for Applications
  Sub NewYearsDayOff()
Dim Y As Year

For Each Y In ActiveProject.Calendar.Years
    Y.Months(pjJanuary).<strong class="bterm">Days</strong>(1).Working = False
Next Y

End Sub