|
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 |
Event Handler Signature and When does the event occur? |
PowerPoint versions |
ColorSchemeChanged |
Application |
ColorSchemeChanged(ByVal
SldRange As SlideRange)
Occurs after a color scheme is changed. |
2010, 2007, 2003, 2002 |
| NewPresentation |
Application |
NewPresentation(ByVal
Pres As Presentation)
Occurs after a new presentation is created. |
2010, 2007, 2003, 2002, 2000 |
| AfterNewPresentation |
Application |
AfterNewPresentation(ByVal
Pres As Presentation)
Occurs after a new presentation is created. |
2010, 2007, 2003 |
| PresentationOpen |
Application |
PresentationOpen(ByVal
Pres As Presentation)
Occurs after an existing presentation is opened. |
2010, 2007, 2003, 2002, 2000 |
| AfterPresentationOpen |
Application |
AfterPresentationOpen(ByVal
Pres As Presentation)
Occurs after an existing presentation is opened. |
2010, 2007, 2003 |
| PresentationBeforeClose |
Application |
PresentationBeforeClose(ByVal
Pres As Presentation, Cancel
As Boolean)
Occurs before a presentation is closed. The default response can be canceled. |
2010 |
| PresentationClose |
Application |
PresentationClose(ByVal
Pres As Presentation)
Occurs before a presentation is closed. |
2010, 2007, 2003, 2002, 2000 |
| PresentationBeforeSave |
Application |
PresentationBeforeSave(ByVal
Pres As Presentation, Cancel
As Boolean)
Occurs before a presentation is saved. The default response can be canceled. |
2010, 2007, 2003, 2002 |
| PresentationSave |
Application |
PresentationSave(ByVal
Pres As Presentation)
Occurs after a presentation is saved. |
2010, 2007, 2003, 2002, 2000 |
| PresentationPrint |
Application |
PresentationPrint(ByVal
Pres As Presentation)
Occurs after a presentation is sent for printing. |
2010, 2007, 2003, 2002, 2000 |
| PresentationNewSlide |
Application |
PresentationNewSlide(ByVal
Sld As Slide)
Occurs after a new slide is created. |
2010, 2007, 2003, 2002, 2000 |
| PresentationSync |
Application |
PresentationSync(ByVal
Pres As Presentation, ByVal SyncEventType
As Office.MsoSyncEventType) |
2010, 2007, 2003 |
| SlideShowBegin |
Application |
SlideShowBegin(ByVal
Wn As SlideShowWindow)
Occurs when a slide show starts. Is called for each slide show that starts. |
2010, 2007, 2003, 2002, 2000 |
| SlideShowEnd |
Application |
SlideShowEnd(ByVal
Pres As Presentation)
Occurs when a slide show ends. Is called for each slide show that ends. |
2010, 2007, 2003, 2002, 2000 |
| SlideShowNextBuild |
Application |
SlideShowNextBuild(ByVal
Wn As SlideShowWindow)
Occurs after the next build starts. |
2010, 2007, 2003, 2002, 2000 |
| SlideShowNextSlide |
Application |
SlideShowNextSlide(ByVal
Wn As SlideShowWindow)
Occurs after showing the new slide. |
2010, 2007, 2003, 2002, 2000 |
| SlideSelectionChanged |
Application |
SlideSelectionChanged(ByVal
SldRange As SlideRange)
Occurs after a slide or slide selection changes in any view except the Outline view. |
2010, 2007, 2003, 2002 |
| SlideShowNextClick |
Application |
SlideShowNextClick(ByVal
Wn As SlideShowWindow,
ByVal nEffect As Effect)
Occurs after the slide show window is clicked. |
2010, 2007, 2003, 2002 |
| SlideShowOnNext |
Application |
SlideShowOnNext(ByVal
Wn As SlideShowWindow)
Occurs when the slide show navigates through next build within the current slide. |
2010, 2007 |
| SlideShowOnPrevious |
Application |
SlideShowOnPrevious(ByVal
Wn As SlideShowWindow)
Occurs when the slide show navigates through previous build within the current slide. |
2010, 2007 |
| OnSlideShowPageChange |
|
OnSlideShowPageChange(ByVal
Wn As SlideShowWindow)
Occurs 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. |
2010, 2007, 2003, 2002, 2000 |
| OnSlideShowTerminate |
|
OnSlideShowTerminate(ByVal
Wn As SlideShowWindow)
Occurs after terminating any slide show.
If a slide show had branched 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. |
2010, 2007, 2003, 2002, 2000 |
| OnSlideShowNextBuild |
|
OnSlideShowNextBuild(ByVal
Wn As SlideShowWindow)
Occurs 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. |
2010, 2007, 2003, 2002, 2000 |
| OnSlideShowPreviousBuild |
|
OnSlideShowPreviousBuild(ByVal
Wn As SlideShowWindow)
Occurs 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. |
2010, 2007, 2003, 2002, 2000 |
| WindowActivate |
Application |
WindowActivate(ByVal
Pres As Presentation,
ByVal Wn As DocumentWindow)
Occurs after any application or document window is activated. |
2010, 2007, 2003, 2002, 2000 |
| WindowBeforeDoubleClick |
Application |
WindowBeforeDoubleClick(ByVal
Sel As Selection, Cancel
As Boolean)
Occurs before a shape is double clicked in normal or slide views.
Occurs before a slide is double clicked in slide sorter view or the notes page
view. The default double-click response can be canceled. |
2010, 2007, 2003, 2002, 2000 |
| WindowBeforeRightClick |
Application |
WindowBeforeRightClick(ByVal
Sel As Selection, Cancel
As Boolean) Occurs before a shape, slide, notes
page or text is clicked using the right mouse button. The
default response can be canceled. |
2010, 2007, 2003, 2002, 2000 |
| WindowDeactivate |
Application |
WindowDeactivate(ByVal
Pres As Presentation,
ByVal Wn As DocumentWindow)
Occurs after any application or document window is deactivated. |
2010, 2007, 2003, 2002, 2000 |
| WindowSelectionChange |
Application |
WindowSelectionChange(ByVal
Sel As Selection)
Occurs after the selection of shape, slide or text is changed in the active document. |
2010, 2007, 2003, 2002, 2000 |
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.
|
|