Class Effect (PowerPoint VBA)

The class Effect represents timing information about a slide animation.

Class Sequence gives access to class Effect.

To use a Effect class variable it first needs to be instantiated, for example

Dim eff as Effect
Set eff = ActivePresentation.SlideMaster.TimeLine.MainSequence(Index:=1)

The following procedures can be used to set variables of type Effect: Sequence.AddEffect, Sequence.AddTriggerEffect, Sequence.Clone, Sequence.ConvertToAfterEffect, Sequence.ConvertToAnimateBackground, Sequence.ConvertToAnimateInReverse, Sequence.ConvertToBuildLevel, Sequence.ConvertToTextUnitEffect, Sequence.FindFirstAnimationFor, Sequence.FindFirstAnimationForClick and Sequence.Item.

Methods

Delete - Deletes the specified Effect object.

MoveAfter - Moves one animation effect to after another animation effect.

MoveBefore - Moves one animation effect to before another animation effect.

MoveTo - Moves the specified object to a specific location within the same collection, renumbering all other items in the collection appropriately.

Properties

Behaviors returns a specified slide animation behavior as an AnimationBehaviors collection.

DisplayName returns the name of an animation effect.

EffectInformation returns an EffectInformation object that represents information for a specified animation effect.

EffectParameters returns an EffectParameters object that represents animation effect properties.

EffectType sets or returns an MsoAnimEffect constant that represents an animation effect type.

Exit determines whether the animation effect is an exit effect.

Index returns a Long that represents the index number for an animation effect or design.

Paragraph returns or sets the paragraph in a text range to which to apply animation effects.

Shape returns a Shape object that represents an animated shape.

TextRangeLength returns or sets a Long that represents the length of a text range.

TextRangeStart returns or sets the start of a text range.

Timing returns a Timing object that represents the timing properties for an animation sequence.

AnimationBehaviors - Represents a collection of AnimationBehavior objects.

EffectInformation - Represents various animation options for an Effect object.

EffectParameters - Represents various animation parameters for an Effect object, such as colors, fonts, sizes, and directions.

Shape - Represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture.

Timing - Represents timing properties for an animation effect.