Closing a powerpoint presentation with vba

S

Sven Luhn

Hello,

i have following problem. I want to close a powerpoint presentation with
a macro. I have added a button to a slide with my action to close the
presentation.

The code is running correctly when th e powerpoint document is a
template (*.ppt). But if a save the template as powerpoint presentation
(*.pps) nothing happed.

I'm using following methods


ActivePresentation.Close
Application.Presentations("Presentation Name").Close
Powerpoint.Presentations("Presentation Name").Close

and so on

Can anyone tell me how can i close a slideshow by mouse click on a
button with a macro ???

Thanks

Sven
 
Top