AdvanceOnClick Property

Microsoft PowerPoint Visual Basic

AdvanceOnClick Property

       

Determines whether the specified slide advances when it's clicked during a slide show. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified slide advances when it's clicked during a slide show.

expression.AdvanceOnClick

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

Remarks

To set the slide to advance automatically after a certain amount of time elapses, set the AdvanceOnTime property to True and set the AdvanceTime property to the amount of time you want the slide to be shown. If you set both the AdvanceOnClick and the AdvanceOnTime properties to True, the slide will advance either when it's clicked or when the specified amount of time has elapsed — whichever comes first.

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