SlideShowTransition.AdvanceOnTime property (PowerPoint)

Determines whether the specified slide advances automatically after a specified amount of time has elapsed. Read/write.

Syntax

expression. AdvanceOnTime

expression A variable that represents an SlideShowTransition object.

Return value

MsoTriState

Remarks

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.

Constant Description
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.

Example

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

See also

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