Class NamedSlideShow (PowerPoint VBA)
The class NamedSlideShow represents a custom slide show, which is a named subset of slides in a presentation. To use a NamedSlideShow class variable it first needs to be instantiated, for example
Dim nss as NamedSlideShow
Set nss = ActivePresentation.SlideShowSettings.NamedSlideShows(Index:=1)
Count
Returns the number of objects in the specified collection.
Dim lngCount As Long
lngCount = ActivePresentation.SlideShowSettings.NamedSlideShows(1).Count
Delete
Deletes the specified NamedSlideShow object.
ActivePresentation.SlideShowSettings.NamedSlideShows(1).Delete
Name
You cannot use this property to set the name for a custom slide show. Use the Add method to redefine a custom slide show under a new name.
You can use the object's name in conjunction with the Item method to return a reference to the object if the Item method for the collection that contains the object takes a Variant argument. For example, if the value of the Name property for a shape is Rectangle 2, .Shapes("Rectangle 2") returns a reference to that shape.
Dim strName As String
strName = ActivePresentation.SlideShowSettings.NamedSlideShows(1).Name
SlideIDs
Returns an array of slide IDs for the specified named slide show.
Dim varSlideIDs As Variant
varSlideIDs = ActivePresentation.SlideShowSettings.NamedSlideShows(1).SlideIDs