If you run the Close or Quit method from the PowerPoint object model after you create a timer by using the SetTimer API for Windows,�a Microsoft Office application will crash when a document is closed or when the application closes.
↑ Back to the top
To resolve this issue, use one of the following methods.
Microsoft Office Word and Microsoft Office Excel
Use the OnTime VBA method instead of SetTimer API to achieve the same kind of behavior.
Microsoft Office�PowerPoint and other Microsoft Office applications
Use a message to prompt�the user to close�the application manually instead of automatically or to use the object model to close the application.
↑ Back to the top