title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.ResourceCalendarEditDays method (Project) |
vbapj.chm620 |
|
project-server |
|
0dc0172f-bc49-347a-7c46-f6a6dc608d8f |
06/08/2017 |
medium |
Edits days in a resource calendar.
expression. ResourceCalendarEditDays
( _ProjectName_
, _ResourceName_
, _StartDate_
, _EndDate_
, _WeekDay_
, _Working_
, _Default_
, _From1_
, _To1_
, _From2_
, _To2_
, _From3_
, _To3_
, _From4_
, _To4_
, _From5_
, _To5_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
ProjectName | Required | String | The name of the project containing the resource calendar to edit. |
ResourceName | Required | String | The name of the resource to edit. |
StartDate | Optional | Variant | The first date to edit. |
EndDate | Optional | Variant | The last date to edit. |
WeekDay | Optional | Long | The weekday to edit. If StartDate and EndDate are specified, WeekDay is ignored. Can be one of the PjWeekday constants. |
Working | Optional | Boolean | True if the days are working days. If Default is True, Working is ignored. |
Default | Optional | Boolean | True if the resource calendar uses the values in the corresponding base calendar as defaults. The default value is False. |
From1 | Optional | Variant | The start time of the first shift. |
To1 | Optional | Variant | The end time of the first shift. |
From2 | Optional | Variant | The start time of the second shift. |
To2 | Optional | Variant | The end time of the second shift. |
From3 | Optional | Variant | The start time of the third shift. |
To3 | Optional | Variant | The end time of the third shift. |
From4 | Optional | Variant | The start time of the fourth shift. |
To4 | Optional | Variant | The end time of the fourth shift. |
From5 | Optional | Variant | The start time of the fifth shift. |
To5 | Optional | Variant | The end time of the fifth shift. |
Boolean
The ResourceCalendarEditDays method returns a trappable error (error code 1101) when applied to material resources.
[!includeSupport and feedback]