SlideShowTransition.AdvanceOnTime property (PowerPoint)
Determines whether the specified slide advances automatically after a specified amount of time has elapsed. Read/write.
expression A variable that represents an SlideShowTransition object.
Use the AdvanceTime property to specify the number of seconds after which the slide automatically advances. Set the AdvanceMode property of the SlideShowSettings object to ppSlideShowUseSlideTimings to put the slide interval settings into effect for the entire slide show.
The value of the AdvanceOnTime property can be one of these MsoTriState constants.
|msoFalse||The specified slide does not advance automatically after a specified amount of time has elapsed.|
|msoTrue||The specified slide advances automatically after a specified amount of time has elapsed.|
This example sets slide one in the active presentation to advance after five seconds have passed or when the mouse is clicked—whichever occurs first.
With ActivePresentation.Slides(1).SlideShowTransition .AdvanceOnClick = msoTrue .AdvanceOnTime = msoTrue .AdvanceTime = 5 End With
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.