Link to home
Start Free TrialLog in
Avatar of englishman
englishman

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of ture
ture

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of antrat
antrat

Hi englishman

This code will save all open presentations

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

hope it helps
antrat
    .Quit
End With
End Sub

Avatar of englishman

ASKER

Just the job.
Cheers