Shift Object

Project Developer Reference

Represents a work shift for a day, month, period, weekday, or year. There is no collection for Shift objects. The Shift object can be accessed through the Shiftn properties of the appropriate objects, such as the Shift1 property of the Day object.

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#
End With

See Also