Application.Hinstance Property (Excel)
Returns a handle to the instance of Microsoft Excel 2010 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 2010, the HinstancePtr property was introduced, which works correctly in both 32- and 64-bit versions of Excel 2010.
Example
In this example, a message box displays the Microsoft Excel instance handle to the user.
Sub CheckHinstance()
MsgBox Application.Hinstance
End Sub