Description |
---|
Excerpt |
---|
Creates a new worksheet at a specified position in the workbook. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Creates a new worksheet at a specified position in the workbook.{excerpt}
{signature:C#}
public Worksheet CreateWorksheet(System.String name, int position)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function CreateWorksheet(ByVal name As String, ByVal position As Integer) As Worksheet
|
Parameters |
---|
...
Name for the new worksheet.
...
The 0-based position at which to insert the worksheet. If position
is greater than Worksheets.Count, an exception will be thrown.
Returns |
---|
A Worksheet object representing the worksheet created. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |