WorkbookBase.Name 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 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