NamedSlideShow Object
TOC
Collapse the table of content
Expand the table of content

NamedSlideShow Object (PowerPoint)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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)

Next
Show:
© 2016 Microsoft