Shiftn Property
Returns a Shift object representing a shift of a day, month, period, weekday, or year. Read-only.
Syntax
expression**.Shift**n
expression Required. An expression that returns an object in the Applies To list.
n Required Integer. A number from 1 to 5 that specifies the shift to return.
Example
The following example schedules a half-day of work on Fridays by creating an 8 A.M. to noon shift.
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
Applies to | Day Object, Days Collection Object | Month Object, Months Collection Object | Period Object | WeekDay Object, WeekDays Collection Object | Year Object, Years Collection Object