Table of contents
TOC
Collapse the table of content
Expand the table of content

AnimationBehaviors Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents a collection of AnimationBehavior objects.

Example

Use the Addmethod to add an animation behavior. The following example adds a five-second animated rotation behavior to the main animation sequence on the first slide.

Sub AnimationObject()

    Dim timeMain As TimeLine



    'Reference the main animation timeline

    Set timeMain = ActivePresentation.Slides(1).TimeLine



    'Add a five-second animated rotation behavior

    'as the first animation in the main animation sequence

    timeMain.MainSequence(1).Behaviors.Add Type:=msoAnimTypeRotation, Index:=1

End Sub

See also

Concepts

PowerPoint Object Model Reference

© 2017 Microsoft