Table of contents
Collapse the table of content
Expand the table of content

PlaySettings.StopAfterSlides Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns or sets the number of slides to be displayed before the media clip stops playing. Read/write.


expression. StopAfterSlides

expression A variable that represents a PlaySettings object.

Return Value



For the StopAfterSlides property setting to take effect, the PauseAnimation property of the specified slide must be set to False, and the PlayOnEntry property must be set to True.

The media clip will stop playing when the specified number of slides have been displayed or when the clip comes to an end — whichever comes first. A value of 0 (zero) specifies that the clip will stop playing after the current slide.


This example specifies that the media clip represented by shape three on slide one in the active presentation will be played automatically when it is animated, that the slide show will continue while the media clip is playing in the background, and that the clip will stop playing after three slides are displayed or when the end of the clip is reached — whichever comes first. Shape three must be a sound or movie object.

Set OLEobj = ActivePresentation.Slides(1).Shapes(3)

With OLEobj.AnimationSettings.PlaySettings

    .PlayOnEntry = True

    .PauseAnimation = False

    .StopAfterSlides = 3

End With

See also


PlaySettings Object

© 2018 Microsoft