This documentation is archived and is not being maintained.
Calendar Object, Calendars Collection Object
Office 2003
Multiple objects
Calendars
Calendar
Multiple objects
|
Represents the calendars or a 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.
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 | Application Property | BaseCalendar Property | Count Property | Enterprise Property | Index Property | Item Property | Name Property | Parent Property | Weekdays Property | Years Property
Parent Objects | Day Object, Days Collection Object | Month Object, Months Collection Object | Period Object | Project Object, Projects Collection Object | Resource Object, Resources Collection Object | WeekDay Object, WeekDays Collection Object | Year Object, Years Collection Object
Show: