Exception | Description |
---|---|
System.ArgumentNullException | name is null or empty. |
System.ArgumentException | name contains the invalid characters: ':', '\', '/', '?', '*', '[', or ']'. |
System.ArgumentException | name exceeds 31 characters in length. |
System.ArgumentException | name is being used as the name of another sheet (sheet names are case-insensitively compared). |
If the workbook originally had no sheets, the newly added sheet will become the selected sheet of the workbook. This can be changed after more sheets are added by setting the WindowOptions.SelectedSheet of the Workbook.
Target Platforms: Windows 10, 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