Application.CalendarDateShading method (Project)
Determines which calendar is used when determining when and how dates are shaded in the Calendar view.
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 Project object model, this argument no longer has an effect. It has been retained for backward compatibility. |
Return value
Boolean
Remarks
When the Calendar view is active, using the CalendarDateShading method with no arguments displays the Timescale dialog box with the Date Shading tab selected. You must specify either BaseCalendarName or ResourceUniqueID, but you cannot specify both.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.