When Microsoft Word is closed, the close event can be canceled. The same is for Excel.
But the PowerPoint close event doesn’t have cancel flag.
Is it possible to cancel the event in any other way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the close event you can set the document to
Saved = False, this will force PowerPoint to ask the user if he wants to save the file with a Yes-No-Cancel message box.Using
SendKeys({ESC})just before the end of the event, it will send escape to the message box, and the close event will be canceled.