_Application.ActiveWindow Property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property ActiveWindow As Window
    Get
'Usage
Dim instance As _Application
Dim value As Window

value = instance.ActiveWindow
Window ActiveWindow { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Window

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace