AdvanceOnTime Property

Microsoft PowerPoint Visual Basic

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

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified slide advances automatically after a specified amount of time has elapsed.

expression.AdvanceOnTime

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Use the AdvanceTime property to specify the number of seconds after which the slide will automatically advance. Set the AdvanceMode property of the SlideShowSettings object to ppSlideShowUseSlideTimings to put the slide interval settings into effect for the entire slide show.

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