Compartilhar via


WorkbookBase.Application Property

Definition

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

Applies to