Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 864 Bytes

Excel.Application.ActiveWindow.md

File metadata and controls

34 lines (22 loc) · 864 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.ActiveWindow property (Excel)
vbaxl10.chm132079
vbaxl10.chm132079
Excel.Application.ActiveWindow
8f788ad0-ae4e-2442-593c-9440e37100de
04/04/2019
medium

Application.ActiveWindow property (Excel)

Returns a Window object that represents the active Excel window (the window on top). Returns Nothing if there are no windows open. Read-only.

Syntax

expression.ActiveWindow

expression A variable that represents an Application object.

Example

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]