Table of contents
TOC
Collapse the table of content
Expand the table of content

Calendars Object (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Contains a collection of Calendar objects.

Example

Using the Calendar Object

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

MsgBox ActiveProject.BaseCalendars(1).Name

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.

Dim C As Calendar 



For Each C In ActiveProject.BaseCalendars 

 C.Reset 

Next C

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

BaseCalendarCreate Name:="Base Holiday Calendar"

Properties

Name
Application
Count
Item
Parent

See also

Other resources

Project Object Model

© 2017 Microsoft