title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Shift.Clear method (Project) |
project-server |
|
89243732-8c83-ba1e-01ff-fdbfa4d4c4d2 |
06/08/2017 |
medium |
Clears the start and finish times of a work shift.
expression.Clear
expression A variable that represents a Shift object.
The following example schedules a half-day of work on Fridays by creating an 8 A.M. to noon shift and removing the second and third shifts.
Sub HalfDayFridays()
With ActiveProject.Calendar.Weekdays(pjFriday)
.Shift1.Start = #8:00:00 AM#
.Shift1.Finish = #12:00:00 PM#
.Shift2.Clear
.Shift3.Clear
End With
End Sub
[!includeSupport and feedback]