This documentation is archived and is not being maintained.

Application.Hinstance Property

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

Syntax

expression.Hinstance

expression   A variable that represents an Application object.

Example

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

Visual Basic for Applications
Sub CheckHinstance()

    MsgBox Application.Hinstance

End Sub



Show: