Microsoft KB Archive/285445

From BetaArchive Wiki
Knowledge Base


Switching between PowerPoint and Visual Basic editor does not cause WindowActivate event

Article ID: 285445

Article Last Modified on 3/19/2007



APPLIES TO

  • Microsoft Office PowerPoint 2007
  • Microsoft Office PowerPoint 2003
  • Microsoft PowerPoint 2002 Standard Edition



This article was previously published under Q285445

SYMPTOMS

When you have a Visual Basic for Applications event handler that uses the WindowActivate or WindowDeactivate events, the following actions may not cause the event handle to run:

  • Switching between the Visual Basic Editor and a PowerPoint presentation.
  • Switching from a PowerPoint presentation to a currently running PowerPoint slideshow.
  • Switching between a PowerPoint presentation and another program.


CAUSE

This behavior can occur because switching between the Visual Basic Editor and a presentation or between any program and a presentation does not cause WM_ACTIVATEAPP and WM_MDIACTIVATE messages to be sent by Microsoft Windows. Windows instead sends a WM_ACTIVATE message, which PowerPoint cannot capture.

STATUS

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

MORE INFORMATION


Additional query words: PPT kbnoOfficeAlertID PPT2007

Keywords: kbbug kbpending KB285445