powerpoint application.quit

My end show button uses the application.quit command to get out of powerpoint completely - but, it doesn't prompt to save changes to any presentaions already open. It doesn't save any changes and closes everything.
I need to prompt to save.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Same problem here and it seems like a bug to me. I'm using PowerPoint 2000 and the help file says...

"To avoid being prompted to save changes, use either the Save or SaveAs method to save all open presentations before calling the Quit method."

....but I don't get any questions at all, PowerPoint just quits without prompting or saving changes.

To be prompted to save before quitting, you may use this procedure and attach it to your 'end show' button.

Sub AskToSaveBeforeQuitting()
  Dim pres As Presentation
  For Each pres In Presentations
    If Not pres.Saved Then
      Select Case MsgBox("Save changes to " & pres.Name, vbYesNoCancel)
        Case vbYes: pres.Save
        Case vbCancel: Exit Sub
      End Select
    End If
  Next pres
End Sub

Ture Magnusson
Karlstad, Sweden

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hi englishman

This code will save all open presentations

Sub CloseAll()
Dim w As Object
With Application
    For Each w In .Presentations
    Next w

hope it helps
End With
End Sub

englishmanAuthor Commented:
Just the job.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.