WorkbookBase.Application Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an Application that represents the creator of the workbook.
public:
property Microsoft::Office::Interop::Excel::Application ^ Application { Microsoft::Office::Interop::Excel::Application ^ get(); };
public Microsoft.Office.Interop.Excel.Application Application { get; }
member this.Application : Microsoft.Office.Interop.Excel.Application
Public ReadOnly Property Application As Application
Property Value
An Application that represents the creator of the workbook.
Examples
The following code example uses the Application property to display the name of the application that created the current workbook.
This example is for a document-level customization.
private void DisplayApplicationName()
{
MessageBox.Show("The creator of this workbook is: " +
this.Application.Name);
}
Private Sub DisplayApplicationName()
MsgBox("The creator of this workbook is: " & _
Me.Application.Name)
End Sub