AnimationBehavior Object (PowerPoint)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents the behavior of an animation effect, the main animation sequence, or an interactive animation sequence. The AnimationBehavior object is a member of the AnimationBehaviors collection.

Use Behaviors (index), where index is the number of the behavior in the sequence of behaviors, to return a single AnimationBehavior object. The following example sets the positions of the a rotation's starting and ending points. This example assumes that the first behavior for the main animation sequence is a RotationEffect object.

Sub Change()

    With ActivePresentation.Slides(1).TimeLine.MainSequence(1) _

            .Behaviors(1).RotationEffect

        .From = 1

        .To = 180

    End With

End Sub
Show: