How can I end multiple open shows with one click?

J

Jonathan KMA

I have a presentation that is made up of 11 separate shows that all link back
and forth between each other. (splitting the show was necessary because of
the lost link problem, links turning into URL links) Each show has a button
on every page with the Action Setting "End show". This closes one show,
leaving the other ten shows running. At this point to end the entire
presentation you must the end each show individually. Is there a way to close
all of the shows at once, effectivly a link to quit PowerPoint altogether?
 
P

PPTMagician

Hi,

You must be running PowerPoint 2002/2003. PowerPoint 2000 does close all
shows with end show. I don't know of a current work-around, but maybe one of
the VBA folks has a macro that can be linked to an End Show button.

Glenna
 
P

PPTMagician

My bad, the anomaly I spoke of effects custom shows, not separate shows. Use
David's VBA macro and then make it the action on your action buttons instead
of end show.

Glenna
 
J

Jonathan KMA

David, Glenna,
Thank you so much for your swift responses. However since I have almost no
experience with VBA I can't seem to get the macro to work.

David if you have a minute please take a look at what I did and let me know
where I went wrong. Thanks.

I selected Visual Basic Editor from the Tools menu and then under the tools
menu in the editro I selected Macros...

I then typed "QuitPowerPoint" and subsequently the create button, at which
point I entered "Application.Quit" as you indicated to me earlier.

I then choose Save from the file menu and quit out of the Editor which
returned me to the PowerPoint show I would like to add the macro to. I right
clicked the image that is being used as my end button and I choose Action
Settings from the menu and then selected Run Macro and highlighted
QuitPowerPoint. After clicking OK I closed and save the show.

When I open the show and click on the button with the macro, nothing
happens. Any help you might have would be much appreciated. Thanks again!
 
D

David M. Marcovitz

It looks like you are doing basically the right thing. You seem to have
skipped a few steps in your description, but I am assuming you did them
because future steps wouldn't have worked without them.

After entering the VBA Editor, did you choose Module from the Insert
menu?

Did you type the word Sub before you typed "QuitPowerPoint"?

Does your module look just like this:

Sub QuitPowerPoint()
Application.Quit
End Sub

Did you save your PowerPoint before clicking on the button?

When looking at the code in the editor, is anything red?

Are there two lines in the code that say "End Sub"? The editor will
automatically insert an End Sub line for you. If you also type your own,
you will have an error.

Do you have macro security set to medium or low?

If none of these things help, copy and paste everything from your VBA
module into a message here, and I will look at it.

--David


--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
J

Jonathan KMA

David,
Once again thank you for you speedy informative response. The problem was as
you suggested. The security setting was at High. After lowering the setting
to medium, the macro worked.

This presentation will be distributed to multiple users... Will lowering the
macro security be saved with the file or will all of the users have to
manually lower their own security for the button to work? I think I know the
answer to this question but I just thought I would ask.

The final problem that I've encountered is that when I click on the button
to end the show and the macro is activated, the screen goes black and a
dialog box stating "Microsoft Office PowerPoint has encountered a problem and
needs to close" appears. After clicking "Don't send" in the dialog box I am
returned to a new blank PPT document and all of the shows have ended. Is
there any way to fix the dialog box problem?

Thanks again!
 
D

David M. Marcovitz

Unfortunately, everyone will have to have their own macro security
setting set to be able to run a macro. Note also that macros do not run
in the PowerPoint Viewer, only in the full version of PowerPoint.

As for the error message you get, I don't know the answer. I do not get
that error. Usually, when I get an error like that, there is a link
(possibly after sending the error report) for more information. Whenever
I have seen that, the link always tells me it is a device driver problem
and not Microsoft's fault, but maybe you'll get some more useful
information.

If the macro doesn't work for you, perhaps you can reorganize your
presentations. You might consider having a main menu presentation that
links to all the other presentations. When each other presentation is
finished, you can click on an End Show button to return to the menu.
That way, you won't have more than two shows open at any given time.

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
J

Jonathan KMA

David,
Thanks so much for all of your help on this issue. I will check out the link
and see if that helps. Your advice was very informative and I learned a lot
today, thanks for putting up with all of my typos!
 
Top