Presentation Close

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Morning

I am struggling to identify the event that runs when a presentation is
closed. In Word we have the option under "This Document" to "Open", "Close",
"New" so it is fairly simply to identify where to place the code, but this is
not the case for PowerPoint.

Can anyone help? I have set up a class and used "AutoExec" as a Sub but this
does not run when the presentation is closed, also tried "AutoClose" (just in
case) but still no joy.

Regards
Jackie
 
Thanks for your response. I did get a reply from another website and searched
for PresentationClose and found the below article. I then followed the links
to Shyam's website.

Shyam is a star.

Regards
Jackie
 
Me again !!

There I was getting all excited because I thought the problem had been
solved - well unfortunately I was wrong !! Setting up the class etc is fine
and runs as I need it to, the problem I have is that I want the code to run
when I close the presentation. The only way I can get it to work is if I run
the function "Trap Events" through VBA when the presentation is open, then
when I close the presentation it runs PresentationClose - it will not run
PresentationClose otherwise.

Any ideas ... please.
Jackie
 
There I was getting all excited because I thought the problem had been
solved - well unfortunately I was wrong !! Setting up the class etc is fine
and runs as I need it to, the problem I have is that I want the code to run
when I close the presentation. The only way I can get it to work is if I run
the function "Trap Events" through VBA when the presentation is open, then
when I close the presentation it runs PresentationClose - it will not run
PresentationClose otherwise.

You want to use the event trapping code in an addin that auto-loads when
PowerPoint starts.

See this (ignoring the parts about toolbars if you don't need any)

Create an ADD-IN with TOOLBARS that run macros
http://www.rdpslides.com/pptfaq/FAQ00031.htm

and see the Add-in FAQ on Shyam's site, http://skp.mvps.org
 
Steve

I solved it eventually, there is a button on the toolbar that activates a
new presentation, when the new presentation opens I run the event handler
code. It seems to be working well (hurray).

I have saved the website you recommended for future reference - many thanks.

Regards
Jackie
 

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