Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NamedSlideShow Object (PowerPoint)

Represents a custom slide show, which is a named subset of slides in a presentation.

The NamedSlideShow object is a member of the NamedSlideShows collection. The NamedSlideShows collection contains all the named slide shows in the presentation.

Use NamedSlideShows(index), where index is the custom slide show name or index number, to return a single NamedSlideShow object. The following example deletes the custom slide show named "Quick Show."

ActivePresentation.SlideShowSettings _

    .NamedSlideShows("Quick Show").Delete

Use the SlideIDs property to return an array that contains the unique slide IDs for all the slides in the specified custom show. The following example displays the slide IDs for the slides in the custom slide show named "Quick Show."

idArray = ActivePresentation.SlideShowSettings _

    .NamedSlideShows("Quick Show").SlideIDs

For i = 1 To UBound(idArray)

    MsgBox idArray(i)

© 2015 Microsoft