CalendarDateShading Method
Determines which calendar is used when determining when and how dates are shaded on the Calendar.
Syntax
expression**.CalendarDateShading(BaseCalendarName, ResourceUniqueID, ProjectIndex)**
*expression * Optional. An expression that returns an Application object.
BaseCalendarName Optional String. If referring to a single project, or the master project in a consolidated project, the name of a base calendar to use for shading. If referring to an subproject in a consolidated project, the name of a base calendar and the name of the subproject in the manner of "*Calendar * [Project]", where Calendar is the name of the base calendar and Project is the name of the subproject.
ResourceUniqueID Optional Long. The unique identification number of a resource. The corresponding resource calendar is used for shading.
ProjectIndex Due to changes in the Microsoft Office Project 2003 object model, this argument no longer has an effect. It has been retained for backwards compatibility.
Remarks
Using the CalendarDateShading method without specifying any arguments displays the Timescale dialog box with the Date Shading tab selected.
You must specify either BaseCalendarName or ResourceUniqueID, but you cannot specify both.
Applies to | Application Object
See Also | CalendarBarStyles Method | CalendarBarStylesEdit Method | CalendarBestFitWeekHeight Method | CalendarDateBoxes Method | CalendarDateShadingEdit Method | CalendarTaskList Method | CalendarTimescale Method | CalendarWeekHeadings Method