AnimationSettings.AdvanceMode property (PowerPoint)
Returns or sets a value that indicates whether the specified shape animation advances only when clicked or automatically after a specified amount of time. Read/write.
Syntax
expression. AdvanceMode
expression A variable that represents an AnimationSettings object.
Remarks
If your shape doesn't become animated, make sure that the TextLevelEffect property is set to a value other than ppAnimateLevelNone and that the Animate property is set to True.
The value of the AdvanceMode property can be one of these PpAdvanceMode constants.
ppAdvanceModeMixed |
ppAdvanceOnClick |
ppAdvanceOnTime |
Example
This example sets shape two on slide one in the active presentation to become animated automatically after five seconds.
With ActivePresentation.Slides(1).Shapes(2).AnimationSettings
.AdvanceMode = ppAdvanceOnTime
.AdvanceTime = 5
.TextLevelEffect = ppAnimateByAllLevels
.Animate = True
End With
See also
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.