Share via


Shift Object

Multiple objects
Shift

Represents a work shift for a day, month, period, weekday, or year. There is no collection for Shift objects. Where the Shift object appears in this diagram, it can be accessed through the Shiftn properties of the appropriate objects.

Using the Shift Object

Use the Shiftn property to return a Shift object. The following example sets every Friday as a half-day by setting the start and finish times for the first shift and clearing the values of the second and third shifts.

With ActiveProject.Calendar.WeekDays(pjFriday)
    .Shift1.Start = #8:00:00 AM#
    .Shift1.Finish = #12:00:00 PM#
    .Shift2.Clear
    .Shift3.Clear
End With

Properties | Application Property | Finish Property | Index Property | Parent Property | Start Property

Methods | Clear Method

Parent Objects | Day Object, Days Collection Object | Month Object, Months Collection Object | Period Object | WeekDay Object, WeekDays Collection Object | Year Object, Years Collection Object