Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 825 Bytes

Project.Shift.Clear.md

File metadata and controls

40 lines (27 loc) · 825 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Shift.Clear method (Project)
project-server
Project.Shift.Clear
89243732-8c83-ba1e-01ff-fdbfa4d4c4d2
06/08/2017
medium

Shift.Clear method (Project)

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.

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

[!includeSupport and feedback]