AnimationBehaviors Collection

AnimationBehaviors Collection
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Effect
Aa158987.parchild(en-us,office.10).gifAnimationBehaviors
Aa158987.space(en-us,office.10).gifAa158987.parchild(en-us,office.10).gifAnimationBehavior

Represents a collection of AnimationBehavior objects.

Using the AnimationBehaviors collection

Use the Add method 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