PPT2002: You Receive an Error Message When You Call the 'Close' Method of the 'ActivePresentation' Event (317301)



The information in this article applies to:

  • Microsoft PowerPoint 2002

This article was previously published under Q317301

SYMPTOMS

If you call Presentation.Close in one of the following Microsoft PowerPoint events
  • NewPresentation
  • PresentationOpen
  • PresentationClose
  • PresentationNewSlide
  • PresentationPrint
  • SlideShowBegin
  • WindowActivate
  • WindowBeforeDoubleClick
  • WindowBeforeRightClick
  • WindowDeactivate
you receive the following error message:
Run-time error '-2147188160 (80048240)':
Application (unknown member): Invalid request. "The operation cannot be performed in this handler"

CAUSE

This problem occurs because PowerPoint events are synchronous, unlike the events that are in other Microsoft Office programs. Therefore, when you call the Close method, it results in another event and fails when called during the events that are listed in the "Symptoms" section of this article.

RESOLUTION

Two new events, the AfterNewPresentation and the AfterPresentationOpen events, were added to the PowerPoint object model in Microsoft Office XP Service Pack 2 (SP-2). To resolve this problem, replace both the NewPresentation and the PresentationOpen events with the new events in Office XP SP-2.

NOTE: The NewPresentation and PresentationOpen events are the only events that are addressed in Office XP SP-2.

To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

307841 OFFXP: How to Obtain the Latest Office XP Service Pack

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date           Time  Size       File name
   -------------------------------------------------
   26-Apr-2002   15:56  2,275,384  Powerpnt.msp
   26-Apr-2002   16:40  8,168,448  Powerpnt_admin.msp
   01-May-2002   10:31      2,642  Readme.txt
				
After the hotfix is installed, the following files will have the listed attributes or later:
   Date           Time  Version         Size       File name
   ----------------------------------------------------------
   24-Apr-2002   12:44  10.0.4016.0       244,040  Msppt.olb
   24-Apr-2002   12:44  10.0.4016.0     5,974,344  Powerpnt.exe
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Office XP Service Pack Service Pack (SP-2).

Modification Type:MinorLast Reviewed:9/27/2006
Keywords:kbHotfixServer kbQFE kbbug kberrmsg kbfix KB317301