Class Timing (PowerPoint VBA)

The class Timing represents timing properties for an animation effect.

Set

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

Dim tmn as Timing
Set tmn = ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Timing

The following procedures can be used to set variables of type Timing: AnimationBehavior.Timing and Effect.Timing

Properties

Accelerate returns or sets the percentage of the duration over which a timing acceleration should take place.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.Accelerate = 0.3

AutoReverse determines whether an effect should play forward and then in reverse, thereby doubling its duration.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.AutoReverse = msoTrue

BounceEnd read/write.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Timing.BounceEnd = msoTrue

BounceEndIntensity read/write.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Timing.BounceEndIntensity =

Decelerate sets or returns the percentage of the duration over which a timing deceleration should take place.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.Decelerate = 0.3

Duration returns or sets the length of an animation in seconds.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Timing.Duration =

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.Parent

RepeatCount sets or returns the number of times to repeat an animation.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.RepeatCount = 5

RepeatDuration sets or returns how long repeated animations should last, in seconds.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.RepeatDuration = 2

Restart represents whether the animation effect restarts after the effect has started once.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.Restart = msoAnimEffectRestartAlways

RewindAtEnd represents whether an object returns to its beginning position after an animation has ended.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.RewindAtEnd = msoTrue

SmoothEnd determines whether an animation should decelerate as it ends.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.SmoothEnd = msoTrue

SmoothStart determines whether an animation should accelerate when it starts.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.SmoothStart = msoTrue

Speed returns or sets the speed, in seconds, of the specified animation.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.Speed = 50

TriggerBookmark read/write.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Timing.TriggerBookmark =

TriggerDelayTime sets or returns the delay, in seconds, from when an animation trigger is enabled.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.TriggerDelayTime = 5

TriggerShape sets or returns a Shape object that represents the shape associated with an animation trigger.

Set ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.TriggerShape =

TriggerType represents the trigger that starts an animation.

ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Timing.TriggerType = msoAnimTriggerAfterPrevious