title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Application.WindowActivate event (PowerPoint) |
vbapp10.chm621009 |
|
|
0d83fda3-b0ad-18df-57bf-c34dafcf782f |
06/08/2017 |
medium |
Occurs when the application window or any document window is activated.
expression.WindowActivate (Pres, Wn)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Pres | Required | Presentation | The presentation displayed in the activated window. |
Wn | Required | DocumentWindow | The activated document window. |
For information about using events with the Application object, see How to: Use Events with the Application Object.
If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this event maps to the following types:
-
Microsoft.Office.Interop.PowerPoint.EApplication_WindowActivateEventHandler (the WindowActivate delegate.)
-
Microsoft.Office.Interop.PowerPoint.EApplication_Event.WindowActivate (the WindowActivate event.)
This example opens every activated presentation in slide sorter view.
Private Sub App_WindowActivate (ByVal Pres As Presentation, ByVal Wn As DocumentWindow)
Wn.ViewType = ppViewSlideSorter
End Sub
[!includeSupport and feedback]