Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.03 KB

Excel.Application.Hinstance.md

File metadata and controls

47 lines (27 loc) · 1.03 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Hinstance property (Excel)
vbaxl10.chm133278
vbaxl10.chm133278
Excel.Application.Hinstance
4551a0a2-0730-1288-7a13-b2beff2a2fca
04/04/2019
medium

Application.Hinstance property (Excel)

Returns a handle to the instance of Excel represented by the Application object. Read-only Long.

Syntax

expression.Hinstance

expression A variable that represents an Application object.

Remarks

Important

This property returns a correct handle only in the 32-bit version of Excel. In Excel, the HinstancePtr property was introduced, which works correctly in both 32-bit and 64-bit versions of Excel.

Example

In this example, a message box displays the Excel instance handle to the user.

Sub CheckHinstance() 
 
 MsgBox Application.Hinstance 
 
End Sub

[!includeSupport and feedback]