Skip to content

Latest commit

 

History

History
55 lines (29 loc) · 1.16 KB

Project.Shift.Index.md

File metadata and controls

55 lines (29 loc) · 1.16 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Shift.Index property (Project)
project-server
Project.Shift.Index
dae37122-f745-2728-5004-b3b3d7ad188a
06/08/2017
medium

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

[!includeSupport and feedback]