Table of contents
Collapse the table of content
Expand the table of content

Application.SlideSelectionChanged Event (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Occurs at different times depending on the current view.


expression. SlideSelectionChanged( SldRange )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
SldRangeRequiredSlideRangeThe selection of slides. In most cases this would be a single slide (for example, in Slide View you navigate to the next slide), but in some cases this could be multiple slides (for example, a marquee selection in Slide Sorter View).


To access the Application events, declare an Application variable in the General Declarations section of your code. Then set the variable equal to the Application object for which you want to access events. For information about using events with the Microsoft PowerPoint Application object, seeHow to: Use Events with the Application Object.

The following table describes when the event occurs in each of the views.

Normal, MasterOccurs when the slide in the slide pane changes.
Slide SorterOccurs when the selection changes.
Slide, NotesOccurs when the slide changes.
OutlineDoes not occur.


This example displays a message every time a user selects a different slide. This example assumes that an Application object called PPTApp has been declared by using the WithEvents keyword.

Private Sub PPTApp_SlideSelectionChanged(ByVal SldRange As SlideRange)

    MsgBox "Slide selection changed."

End Sub

See also


Application Object

© 2018 Microsoft