WorkbookBase.Application Property
Gets an Application that represents the creator of the workbook.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Public ReadOnly Property Application As Application
public Application Application { get; }
Property Value
Type: Application
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 Sub DisplayApplicationName()
MsgBox("The creator of this workbook is: " & _
Me.Application.Name)
End Sub
private void DisplayApplicationName()
{
MessageBox.Show("The creator of this workbook is: " +
this.Application.Name);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.