All works well until the presentation is over; the user presses the ESC key,
it goes back to slide sorter mode, then they close PowerPoint.
This looks ugly, so I tried adding a button which says exit. The code
behind it is
Private Sub cmdExit_Click()
application.quit.
End Sub
The first time I clicked it the application closed, but not since - now
nothing happens. I have checked the code, it hasn't changed. The button is
named cmdExit.
I even tried adding another button, still nothing.
What could be wrong?
Thanks,
Mich
--
<>Please post all follow-up questions/replies to the newsgroup<>
<><>Email unless specifically requested will not be opened<><>
<><><>Do Provide The Version Of PowerPoint You Are Using<><><>
<><><>Do Not Post Attachments In This Newsgroup<><><>
Michael Koerner [MS PPT MVP]
"M Skabialka" <mskab...@NOSPAMdrc.com> wrote in message
news:Ozx0pxfS...@TK2MSFTNGP10.phx.gbl...
Application.Quit
I don't think it will like the period you put at the end of that line.
Why do you need code for this? Why not just save the file as a PowerPoint
Show (.pps)? Then when the file is double-clicked it will automatically
go into show mode and when the show is exited, the application will quit.
--David
--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
"M Skabialka" <mskab...@NOSPAMdrc.com> wrote in
news:Ozx0pxfS...@TK2MSFTNGP10.phx.gbl:
When I changed it to a .pps none of the hyperlinks to the other .ppt files
would work. Do they all have to be .pps if the master is?
Buttons don't work on .ppt files?
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns97899984559A0ma...@207.46.248.16...
Try
activepresentation.application.quit
--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
"M Skabialka" <mskab...@NOSPAMdrc.com> wrote in
news:#HfrlEgS...@TK2MSFTNGP09.phx.gbl:
Sub QUIT()
Application.Quit
End Sub
--
Jean-Pierre FORESTIER Microsoft MVP PowerPoint
Auteur de PowerPoint 2002 chez Micro Application
"David M. Marcovitz" <marco...@loyola.edu> a écrit dans le message news:
Xns978C7E9A144E6ma...@207.46.248.16...
Private Sub cmdExit_Click()
activepresentation.application.quit
End Sub
ran the presentation and the code worked - once! The presentation closed,
so did PowerPoint.
I opened it again and the button is now useless; you can see it depress but
nothing happens. If I add stop in the code, it doesn't stop!
All updates to Windows and Office have been applied, even the one to change
the time zones for Australia for the Commonwealth Games!
Any other ideas?
Mich
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns978C7E9A144E6ma...@207.46.248.16...