Table of contents
TOC
Collapse the table of content
Expand the table of content

Shift.Index Property (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets the index of a Shift object in the containing object. Read-only Integer.

Syntax

expression. Index

expression A variable that represents a Shift object.

Remarks

Following are the objects that can contain Shift objects:

  • Day

  • Month

  • WeekDay

  • WorkWeekDay

  • Year

Shift objects are accessed using the Shift1... Shift5 properties. Because Project defines five shifts, the Index property can have only the values 1 through 5.

The Index properties of different objects are used in similar ways. For an example, see the Index property of the Project object.

Example

The following command in the Immediate window of the VBE prints the value 2.

? ActiveProject.Calendar.WeekDays.Item(3).Shift2.Index
© 2018 Microsoft