Freigeben über


WorkbookBase.Name Property

Definition

Gets the name of the workbook.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Property Value

The name of the workbook.

Examples

The following code example uses the Name property to display the name of the current workbook.

This example is for a document-level customization.

private void DisplayWorkbookName()
{
    MessageBox.Show("The name of the current workbook is " +
        this.Name);
}
Private Sub DisplayWorkbookName()
    MsgBox("The name of the current workbook is " & _
        Me.Name)
End Sub

Applies to