Calendar.Period method (Project)

Gets a Period object representing a period of time in a calendar. Read-only Period.

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.

Sub SetWinterHoliday() 
    ActiveProject.Calendar.Period("12/20/02", "12/31/02").Working = False 
 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.