ShiftIndex Method

See Also Applies To Example Model

Shifts the index of each object in a collection by a specified number of positions.

object expression.ShiftIndex ([Places])

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Places    Optional Long. The number of index positions to shift. Default = 1.

Example

The following example shifts the position of Bot objects within a Group by 1 index position.

Group.ShiftIndex 1