SlideShowSettings.NamedSlideShows property (PowerPoint)
Returns a NamedSlideShows collection that represents all the named slide shows (custom slide shows) in the specified presentation. Read-only.
expression A variable that represents a SlideShowSettings object.
Each named slide show, or custom slide show, is a user-selected subset of the specified presentation.
Use the Add method of the NamedSlideShows object to create a named slide show.
This example adds to the active presentation a named slide show "Quick Show" that contains slides 2, 7, and 9. The example then runs this slide show.
Dim qSlides(1 To 3) As Long With ActivePresentation With .Slides qSlides(1) = .Item(2).SlideID qSlides(2) = .Item(7).SlideID qSlides(3) = .Item(9).SlideID End With With .SlideShowSettings .RangeType = ppShowNamedSlideShow .NamedSlideShows.Add "Quick Show", qSlides .SlideShowName = "Quick Show" .Run End With End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.