PPT2002: Switching Between PowerPoint and Visual Basic Editor Does Not Cause WindowActivate Event (285445)



The information in this article applies to:

  • Microsoft PowerPoint 2002

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

For more information about event handling, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type WindowActivate event in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MajorLast Reviewed:5/21/2001
Keywords:kbbug KB285445