Overriding Close in Powerpoint

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.
 
B

Bill Dilworth

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.
 
S

Shyam Pillai

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
 
S

Shyam Pillai

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
 
S

Shyam Pillai

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.
 
A

Alison

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

Top