WorkbookBase.Application Property

Gets an Microsoft.Office.Interop.Excel.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: Microsoft.Office.Interop.Excel.Application
An Microsoft.Office.Interop.Excel.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

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace