title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Calendar.Period method (Project) |
project-server |
|
b717bcbe-654b-5791-2002-d65e2a96617f |
06/08/2017 |
medium |
Gets a Period object representing a period of time in a calendar. Read-only Period.
expression. Period
( _Start_
, _Finish_
)
expression A variable that represents a Calendar object.
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. |
Period
The following example sets a winter holiday for the active project.
Sub SetWinterHoliday()
ActiveProject.Calendar.Period("12/20/02", "12/31/02").Working = False
End Sub
[!includeSupport and feedback]