Class SlideRange (PowerPoint VBA)

A collection that represents a notes page or a slide range, which is a set of slides that can contain as little as a single slide or as much as all the slides in a presentation.

The classes Selection and Slide. give access to class SlideRange


Dim sre as SlideRange
Set sre = ActivePresentation.Slides

Methods

ApplyTemplate - Applies a design template to the specified slide range.

ApplyTemplate2 - Applies a design template and theme variant to the slide range.

ApplyTheme - Applies a theme or design template to the specified range of slides.

ApplyThemeColorScheme - Applies a color scheme to the specified range of slides.

Copy - Copies the specified object to the Clipboard.

Cut - Deletes the specified object and places it on the Clipboard.

Delete - Deletes the specified SlideRange object.

Duplicate - Creates a duplicate of the specified SlideRange object, adds the new range of slides to the Slides collection immediately after the slide range specified originally, and then returns a SlideRange object that represents the duplicate slides.

Export - Exports a range of slides, using the specified graphics filter, and saves the exported file under the specified file name.

Item - Returns a single Slide object from the specified SlideRange collection.

MoveTo - Moves the specified object to a specific location within the same collection, renumbering all other items in the collection appropriately.

MoveToSectionStart - Moves the current position to the start of the specified section in the SlideRange object.

PublishSlides - Creates a Web presentation (in HTML format) from any loaded presentation. You can view the published presentation in a web browser.

Select - Selects the specified object.

Properties

Background returns a ShapeRange object that represents the slide background.

BackgroundStyle sets or returns the background style of the specified object.

ColorScheme returns or sets the ColorScheme object that represents the scheme colors for the specified slide, slide range, or slide master.

Comments returns a Comments object that represents a collection of comments.

Count returns the number of objects in the specified collection.

CustomerData returns a CustomerData object.

CustomLayout returns a CustomLayout object that represents the custom layout associated with the specified range of slides.

Design returns a Design object representing a design.

DisplayMasterShapes determines whether the specified range of slides displays the background objects on the slide master.

FollowMasterBackground determines whether the range of slides follows the slide master background.

HasNotesPage indicates whether the selected SlideRange has media that resides on a notes page.

HeadersFooters returns a HeadersFooters collection that represents the header, footer, date and time, and slide number associated with the slide, slide master, or range of slides.

Hyperlinks returns a Hyperlinks collection that represents all the hyperlinks on the specified slide.

Layout returns or sets a PpSlideLayout constant that represents the slide layout.

Master returns a Master object that represents the slide master.

Name when a slide is inserted into a presentation, Microsoft PowerPoint automatically assigns it a name in the form Slide n, where n is an integer that represents the order in which the slide was created in the presentation. For example, the first slide inserted into a presentation is automatically named Slide1. If you copy a slide from one presentation to another, the slide loses the name it had in the first presentation and is automatically assigned a new name in the second presentation. A slide range must contain exactly one slide.

NotesPage returns a SlideRange object that represents the notes pages for the specified slide or range of slides.

PrintSteps returns the number of slides you'd need to print to simulate the builds on the specified slide, slide master, or range of slides.

sectionIndex returns the index of the selected section in the SlideRange.

Shapes returns a Shapes collection that represents all the elements that have been placed or inserted on the specified slide, slide master, or range of slides.

SlideID returns a unique ID number for the specified slide.

SlideIndex returns the index number of the specified slide within the Slides collection.

SlideNumber returns the slide number.

SlideShowTransition returns a SlideShowTransition object that represents the special effects for the specified slide transition.

Tags returns a Tags object that represents the tags for the specified object.

ThemeColorScheme returns a ThemeColorScheme object that represents the color scheme associated with the specified range of slides.

TimeLine returns a TimeLine object that represents the animation timeline for the slide.