AnimationBehaviors.Add method (PowerPoint)

Returns an AnimationBehavior object that represents a new animation behavior.

Syntax

expression.Add (Type, Index)

expression A variable that represents an AnimationBehaviors object.

Parameters

Name Required/Optional Data type Description
Type Required MsoAnimType The type of the animation behavior.
Index Optional Long The position of the animation behavior in relation to other animation behaviors. The default value is -1, which means that if you omit the Index parameter, the new animation behavior is added at the end of the existing animation behaviors.

Return value

AnimationBehavior

Remarks

The Type parameter value can be one of these MsoAnimType constants.

msoAnimTypeColor
msoAnimTypeMixed
msoAnimTypeMotion
msoAnimTypeNone
msoAnimTypeProperty
msoAnimTypeRotation
msoAnimTypeScale

See also

AnimationBehaviors 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.