Name Property
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Workbook.Name Property

Gets the name of the workbook.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public virtual string Name { get; }

Property Value

The name of the workbook.

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

private void DisplayWorkbookName()
{
    MessageBox.Show("The name of the current workbook is " +
        this.Name);
}

Show:
© 2016 Microsoft