Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 817 Bytes

Excel.Application.Hwnd.md

File metadata and controls

42 lines (25 loc) · 817 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.hWnd property (Excel)
vbaxl10.chm133277
vbaxl10.chm133277
Excel.Application.Hwnd
ed98b59c-1ebf-f319-f986-3406e4fdb766
04/04/2019
medium

Application.hWnd property (Excel)

Returns a Long indicating the top-level window handle of the Microsoft Excel window. Read-only.

Syntax

expression.hWnd

expression A variable that represents an Application object.

Example

In this example, Microsoft Excel notifies the user of the top-level window handle of the Excel window.

Sub CheckHwnd() 
 
 MsgBox "The top-level window handle is: " & _ 
 Application.hWnd 
 
End Sub

[!includeSupport and feedback]