Home Products Tips VBA FAQ Utilities Licensing Disclaimer Privacy Policy Links

Events supported by PowerPoint

The following table lists the events and their sequence of occurring in PowerPoint. It also notes the PowerPoint version that started supporting the event.

Event Object When does it occur? PowerPoint versions
ColorSchemeChanged Application ColorSchemeChanged(ByVal SldRange As SlideRange)

After a color scheme is changed.

2002, 2003, 2007
NewPresentation Application NewPresentation(ByVal Pres As Presentation)

After a new presentation is created.

2000, 2002, 2003, 2007
AfterNewPresentation Application AfterNewPresentation(ByVal Pres As Presentation)

After a new presentation is created.

2003, 2007
PresentationOpen Application PresentationOpen(ByVal Pres As Presentation)

After an existing presentation is opened.

2000, 2002, 2003, 2007
AfterPresentationOpen Application AfterPresentationOpen(ByVal Pres As Presentation)

After an existing presentation is opened.

2003, 2007
PresentationClose Application PresentationClose(ByVal Pres As Presentation)

Before a presentation is closed.

2000, 2002, 2003, 2007
PresentationSave Application PresentationSave(ByVal Pres As Presentation)

After a presentation is saved.

2000, 2002, 2003, 2007
PresentationBeforeSave Application PresentationBeforeSave(ByVal Pres As Presentation, Cancel As Boolean)

Before a presentation is saved. The default response can be cancelled.

2002, 2003, 2007
PresentationPrint Application PresentationPrint(ByVal Pres As Presentation)

After a presentation is sent for printing.

2000, 2002, 2003, 2007
PresentationNewSlide Application PresentationNewSlide(ByVal Sld As Slide)

After a new slide is created.

2000, 2002, 2003, 2007
PresentationSync Application PresentationSync(ByVal Pres As Presentation, ByVal SyncEventType As Office.MsoSyncEventType) 2003, 2007
SlideShowBegin Application SlideShowBegin(ByVal Wn As SlideShowWindow)

When a slide show starts.

2000, 2002, 2003, 2007
SlideShowEnd Application SlideShowEnd(ByVal Pres As Presentation)

When a slide show ends.

2000, 2002, 2003, 2007
SlideShowNextBuild Application SlideShowNextBuild(ByVal Wn As SlideShowWindow)

After the next build starts.

2000, 2002, 2003, 2007
SlideShowNextSlide Application SlideShowNextSlide(ByVal Wn As SlideShowWindow)

After showing the new slide.

2000, 2002, 2003, 2007
SlideSelectionChanged Application SlideSelectionChanged(ByVal SldRange As SlideRange)

After a slide or slide selection changes in any view except the Outline view.

2002, 2003, 2007
SlideShowNextClick Application SlideShowNextClick(ByVal Wn As SlideShowWindow, ByVal nEffect As Effect)

After the slide show window is clicked.

2002, 2003, 2007
SlideShowOnNext Application SlideShowOnNext(ByVal Wn As SlideShowWindow)

When the slide show navigates through next build within the current slide.

2007
SlideShowOnPrevious Application SlideShowOnPrevious(ByVal Wn As SlideShowWindow)

When the slide show navigates through previous build within the current slide.

2007
OnSlideShowPageChange   OnSlideShowPageChange(ByVal Wn As SlideShowWindow)

After showing the new slide.

This is an auto-macro and does not require any object to be declared. It is fired even when the presentation that hosts these event handlers is not in slide show mode.

2000, 2002, 2003, 2007
OnSlideShowTerminate   OnSlideShowTerminate(ByVal Wn As SlideShowWindow)

After terminating any slide show. If a slide show branches to another, the OnSlideShowTerminate() event also occurs when the second slide show ends.

This is an auto-macro and does not require any object to be declared. It is fired even when the presentation that hosts these event handlers is not in slide show mode.

2000, 2002, 2003, 2007
OnSlideShowNextBuild   OnSlideShowNextBuild(ByVal Wn As SlideShowWindow)

When the slide show navigates through next build within the current slide. This event is not fired when the slide show transitions to next slide.

This is an auto-macro and does not require any object to be declared. It is fired even when the presentation that hosts these event handlers is not in slide show mode.

2000, 2002, 2003, 2007
OnSlideShowPreviousBuild   OnSlideShowPreviousBuild(ByVal Wn As SlideShowWindow)

When the slide show navigates through previous build within the current slide. This event is not fired when the slide show transitions to previous slide.

This is an auto-macro and does not require any object to be declared. It is fired even when the presentation that hosts these event handlers is not in slide show mode.

2000, 2002, 2003, 2007
WindowActivate Application WindowActivate(ByVal Pres As Presentation, ByVal Wn As DocumentWindow)

After any application or document window is activated.

2000, 2002, 2003, 2007
WindowBeforeDoubleClick Application WindowBeforeDoubleClick(ByVal Sel As Selection, Cancel As Boolean)

Before a shape is double clicked in normal or slide views.
Before a slide is double clicked in slide sorter view or the notes page view. The default double-click response can be cancelled.

2000, 2002, 2003, 2007
WindowBeforeRightClick Application WindowBeforeRightClick(ByVal Sel As Selection, Cancel As Boolean)

Before a shape, slide, notes page or text is clicked using the right mouse button. The default response can be cancelled.

2000, 2002, 2003, 2007
WindowDeactivate Application WindowDeactivate(ByVal Pres As Presentation, ByVal Wn As DocumentWindow)

After any application or  document window is deactivated.

2000, 2002, 2003, 2007
WindowSelectionChange Application WindowSelectionChange(ByVal Sel As Selection)

After the selection of shape, slide or text is changed in the active document.

2000, 2002, 2003, 2007

Sequence of events

Some of the events are not available in some versions of PowerPoint.

Operation Event Sequence
Create a new presentation WindowActivate, NewPresentation, PresentationNewSlide, WindowSelectionChange
Open an existing presentation PresentationOpen, AfterPresentationOpen, SlideSelectionChanged, WindowSelectionChange
Save a presentation PresentationBeforeSave, PresentationSave
Add a slide to the presentation PresentationNewSlide, SlideSelectionChanged, WindowSelectionChange
Starting a slide show SlideShowBegin, SlideShowNextSlide, SlideShowNextClick

Look at Event Generator add-in here. It redirects the events from the add-in to the presentations.


Copyright © 2001-2009 OfficeOne. All rights reserved.

free hit counter