Skip to content

Latest commit

 

History

History
73 lines (37 loc) · 1.46 KB

Project.calendars.md

File metadata and controls

73 lines (37 loc) · 1.46 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Calendars object (Project)
project-server
a96c7b96-f0ab-5ec3-3d16-facea61b8ee5
06/08/2017
medium

Calendars object (Project)

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

Project Object Model

[!includeSupport and feedback]