Overriding Close in Powerpoint

  • Thread starter Thread starter axk
  • Start date Start date
A

axk

Hi

Does anyone know if there is anyway of overriding the Close() method of
a Powerpoint application?

Basically, I want to display my own custom dialog to the user when they
close a Powerpoint presentation.

Thanks in advance, Alison.
 
In short, no.

The 'Presentation Close' event triggers when a presentation is closed, but
can not stop the shutting down of the presentation.

Bill D.
 
In short, no.

The 'Presentation Close' event triggers when a presentation is closed, but
can not stop the shutting down of the presentation.

ISTR that the workaround is to trap the close event, reopen the just-closed
presentation, then do whatever's necessary.

If what's necessary MUST be done prior to any save, then ... sorry.
 
If what's necessary MUST be done prior to any save, then ... sorry.
Only PPT 2003 PresentationBeforeSave event. You can even cancel the save.


--
Regards,
Shyam Pillai

Image Importer Wizard: http://skp.mvps.org/iiw.htm
 
can not stop the shutting down of the presentation.
Call NewWindow method of the presentation being closed and it will still
remain open.


--
Regards,
Shyam Pillai

Handout Wizard: http://skp.mvps.org/how
 
Yes, create an eventhandler. The PowerPoint PresentationClose event is
actually a before close event. It occurs before the presentation is closed
and not after the presentation is closed. Hence you can display any dialog
of your choice in the close event.
 
Thanks for that Shyam.

I'm pretty new to this VBA stuff, so you'll have to forgive me if this
is a dumb question.

I seem to be only able to insert a module, class module or user form
in to the project. I've got examples here of similar things done in
Excel and it seems that a folder is created called Microsoft Excel
Objects and a class called ThisWorkbook has been placed underneath
that. All event handlers have then been placed in this file for eg.
Workbook_BeforeClose(Cancel as Boolean). Is there an equivalent class
in powerpoint and how would I insert it into my project?

Thanks, Alison
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top