Day.Shift2 Property

Project Developer Reference

Returns a Shift object representing a shift of a Day. Read-only Object.

Syntax

expression.Shift2

expression   A variable that represents a Day object.

Return Value
Shift

Example
The following example schedules a half-day of work on Fridays by creating an 8 A.M. to noon shift.

Visual Basic for Applications
  Sub HalfDayFridays()
With ActiveProject.Calendar.WeekDays(pjFriday)
    .<strong class="bterm">Shift1</strong>.Start = #8:00:00 AM#
    .<strong class="bterm">Shift1</strong>.Finish = #12:00:00 PM#
    .<strong class="bterm">Shift2</strong>.Clear
    .<strong class="bterm">Shift3</strong>.Clear
End With

End Sub

See Also