Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.05 KB

Excel.Application.OnWindow.md

File metadata and controls

34 lines (20 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.OnWindow property (Excel)
vbaxl10.chm133186
vbaxl10.chm133186
Excel.Application.OnWindow
73ae5d34-66e6-3c1e-07f8-08850d13a4f5
04/05/2019
medium

Application.OnWindow property (Excel)

Returns or sets the name of the procedure that's run whenever you activate a window. Read/write String.

Syntax

expression.OnWindow

expression A variable that represents an Application object.

Remarks

The procedure specified by this property isn't run when other procedures switch to the window or when a command to switch to a window is received through a DDE channel. Instead, the procedure responds to the user's actions, such as clicking a window with the mouse.

If a worksheet or macro sheet has an Auto_Activate or Auto_Deactivate macro defined for it, those macros will be run after the procedure specified by the OnWindow property.

[!includeSupport and feedback]