Hinstance Property

Microsoft Excel Visual Basic

expression.Hinstance

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel notifies the user about the instance handle of the instance that is calling Excel.

Sub CheckHinstance()

    MsgBox Application.Hinstance

End Sub