Parameters
- name
- The name to give the new Worksheet.
Return Value
The Worksheet created with the specified name.| Exception | Description |
|---|---|
| is null or empty. | |
| contains the invalid characters: ':', '\', '/', '?', '*', '[', or ']'. | |
| exceeds 31 characters in length. | |
| is being used as the name of another worksheet (worksheet names are case-insensitively compared). |
If the workbook originally had no worksheets, the newly added worksheet will become the selected worksheet of the workbook. This can be changed after more worksheets are added by setting the WindowOptions.SelectedWorksheet of the Workbook.