AnimationSettings.AnimationOrder property (PowerPoint)

Returns or sets an integer that represents the position of the specified shape within the collection of shapes to be animated. Read/write.

Syntax

expression. AnimationOrder

expression A variable that represents an AnimationSettings object.

Return value

Long

Remarks

You won't see effects of setting this property unless the specified shape gets animated. For a shape to be animated, the TextLevelEffect property of the AnimationSettings object for the shape must be set to something other than ppAnimateLevelNone and the Animate property must be set to True.

Note

Setting the AnimationOrder property to a value that is less than the greatest existing AnimationOrder property value can shift the animation order.

Example

This example specifies that shape two on slide two in the active presentation be animated second.

ActivePresentation.Slides(2).Shapes(2) _
    .AnimationSettings.AnimationOrder = 2

See also

AnimationSettings Object

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.