Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 1.7 KB

PowerPoint.Application.WindowActivate.md

File metadata and controls

64 lines (36 loc) · 1.7 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.WindowActivate event (PowerPoint)
vbapp10.chm621009
vbapp10.chm621009
PowerPoint.Application.WindowActivate
0d83fda3-b0ad-18df-57bf-c34dafcf782f
06/08/2017
medium

Application.WindowActivate event (PowerPoint)

Occurs when the application window or any document window is activated.

Syntax

expression.WindowActivate (Pres, Wn)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Pres Required Presentation The presentation displayed in the activated window.
Wn Required DocumentWindow The activated document window.

Remarks

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.)

Example

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

See also

Application Object

[!includeSupport and feedback]