title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Application.hWnd property (Excel) |
vbaxl10.chm133277 |
|
|
ed98b59c-1ebf-f319-f986-3406e4fdb766 |
04/04/2019 |
medium |
Returns a Long indicating the top-level window handle of the Microsoft Excel window. Read-only.
expression.hWnd
expression A variable that represents an Application object.
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]