Share via


Shift.Clear Method

Project Developer Reference

Clears the start and finish times of a work shift.

Syntax

expression.Clear

expression   A variable that represents a Shift object.

Example
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.

Visual Basic for Applications
  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

See Also