Share via


Calendar Property

Day, Month, Period, Weekday, or Year object: Returns a Calendar object representing the calendar containing the day, month, period, weekday, or year object. Read-only.

Project or Resource object: Returns a Calendar object representing a calendar for a project or resource. Read-only.

Task object: Returns or sets the calendar to be used when scheduling the task. Read/write String.

Remarks

The Calendar property does not return any meaningful information for material resources. Setting a value returns a trappable error (error code 1101) when applied to material resources.

Example

The following example resets the calendar for the active project.

Sub ResetActiveProjectCalendar()
    ActiveProject.Calendar.Reset
End Sub

Applies to | Day Object, Days Collection Object | Month Object, Months Collection Object | Period Object | Project Object, Projects Collection Object | Resource Object, Resources Collection Object | Task Object, Tasks Collection Object | WeekDay Object, WeekDays Collection Object | Year Object, Years Collection Object

See Also | BaseCalendar Property | BaseCalendars Method | Calendar Object, Calendars Collection Object | IgnoreResourceCalendar Property | Period Method