Shift.Index property (Project)
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.