Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A Microsoft Office application will crash if you run the Close or Quit method from the PowerPoint object model


View products that this article applies to.

Symptoms

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


Resolution

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


Keywords: KB2496739

↑ Back to the top

Article Info
Article ID : 2496739
Revision : 1
Created on : 2/14/2011
Published on : 2/14/2011
Exists online : False
Views : 456