Table of contents
TOC
折叠目录
展开目录

Day.Shift5 属性 (项目)Day.Shift5 Property (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取一个班次对象,该对象表示一天中的第五个工作班次。只读的班次Gets a Shift object representing the fifth work shift in a day. Read-only Shift.

语法Syntax

表达式Shift5expression. Shift5

表达式_一个代表Day对象的变量。_expression A variable that represents a Day object.

示例Example

下面的示例通过创建上午 8 点开始到中午结束的班次,在每个星期五排定半天的工时。The following example schedules a half-day of work on Fridays by creating an 8 A.M. to noon shift.

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
© 2018 Microsoft