Calendar Object (Project)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents the calendar for a resource or project. The Calendar object is a member of the Calendars collection.

Using the Calendar Object

Use BaseCalendars(Index), where Index is the calendar index number or calendar name, to return a single Calendar object.

Using the Calendars Collection

Use the BaseCalendars property to return a Calendars collection. The following example resets the properties of each base calendar in the active project to their default values.

Use the BaseCalendarCreate method to add a Calendar object to the Calendars collection. The following example creates a new base calendar.

Show: