Application Property

Microsoft Office Object Model

Application Property

       

Returns an Application object that represents the container application for the object (you can use this property with an Automation object to return that object's container application).

expression.Application

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

Example

This example returns the name of the application in which the command bar named Standard was created and displays this result in a message box.

Set Appobj = CommandBars("Standard").Application
MsgBox Appobj