Version

Name Property (Sheet)

Gets or sets the sheet name.
Syntax
'Declaration
 
Public Property Name As System.String
public System.string Name {get; set;}

Property Value

The sheet name.
Exceptions
ExceptionDescription
System.ArgumentNullException The value assigned is null or empty.
System.ArgumentException The value assigned contains the invalid characters: ':', '\', '/', '?', '*', '[', or ']'.
System.ArgumentException The value assigned exceeds 31 characters in length.
System.ArgumentException The value assigned is being used as the name of another sheet (sheet names are case-insensitively compared).
Remarks

The sheet name is case-insensitively unique in the workbook.

The sheet name is shown in the tab for the worksheet. In addition, the worksheet name can be used by formulas from other worksheets to refer to cells in this worksheet.

Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub