LoopUntilStopped Property

Microsoft PowerPoint Visual Basic

Show All

LoopUntilStopped Property

       

As it applies to the PlaySettings object.

Determines whether the specified movie or sound loops continuously until either the next movie or sound starts, the user clicks the slide, or a slide transition occurs. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified movie or sound loops continuously until either the next movie or sound starts, the user clicks the slide, or a slide transition occurs.

expression.LoopUntilStopped

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

As it applies to the SlideShowSettings object.

Determines whether specified slide show loops continuously until the user presses ESC. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified slide show loops continuously until the user presses ESC. 

expression.LoopUntilStopped

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

Example

As it applies to the PlaySettings object. 

This example specifies that shape three on slide one in the active presentation will start to play in the animation order and will continue to play until the next media clip starts. Shape three must be a sound or movie object.

ActivePresentation.Slides(1).Shapes(3) _
    .AnimationSettings.PlaySettings.LoopUntilStopped = msoTrue

As it applies to the SlideShowSettings object. 

This example starts a slide show of the active presentation that will automatically advance the slides (using the stored timings) and will loop continuously through the presentation until the user presses ESC.

With ActivePresentation.SlideShowSettings
    .AdvanceMode = ppSlideShowUseSlideTimings
    .LoopUntilStopped = msoTrue
    .Run
End With