title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Application.ActiveWindow property (Excel) |
vbaxl10.chm132079 |
|
|
8f788ad0-ae4e-2442-593c-9440e37100de |
04/04/2019 |
medium |
Returns a Window object that represents the active Excel window (the window on top). Returns Nothing if there are no windows open. Read-only.
expression.ActiveWindow
expression A variable that represents an Application object.
This example displays the name (Caption property) of the active Excel window.
MsgBox "The name of the active window is " & ActiveWindow.Caption
[!includeSupport and feedback]