Calendar.Period Method

Project Developer Reference

Returns a Period object representing a period of time in a calendar.

Syntax

expression.Period(Start, Finish)

expression   A variable that represents a Calendar object.

Parameters

Name Required/Optional Data Type Description
Start Required Variant The start date of the desired period.
Finish Optional Variant The finish date of the desired period. The default value is the same date as Start.

Return Value
Period

Example
The following example sets a winter holiday for the active project.

Visual Basic for Applications
  Sub SetWinterHoliday()
    ActiveProject.Calendar.Period("12/20/02", "12/31/02").Working = False
End Sub

See Also