Application.CalendarDateShading Method

Project Developer Reference

Determines which calendar is used when determining when and how dates are shaded on the Calendar.

Syntax

expression.CalendarDateShading(BaseCalendarName, ResourceUniqueID, ProjectIndex)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
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 Optional Variant Due to changes in the Microsoft Office Project 2007 object model, this argument no longer has an effect. It has been retained for backward compatibility.

Return Value
Boolean

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.

See Also