Application Property

Microsoft Office Visual Basic

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