Partager via


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

Concepts

SlideShowTransition Object

SlideShowTransition Object Members