Description |
---|
Excerpt |
---|
Inserts a new worksheet into the workbook at a specified position. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Inserts a new worksheet into the workbook at a specified position.{excerpt}
{signature:C#}
public Worksheet InsertSheet(System.String name, int position)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function InsertSheet(ByVal name As String, ByVal position As Integer) As Worksheet
|
Parameters |
---|
...
The name of the sheet to create and insert.
...
The 0-based position at which to insert the worksheet. If position
is less than 0, it is inserted before the first sheet in the workbook. If position
is equal to or greater than Worksheets.Count, it is inserted after the last worksheet.
Returns |
---|
A Worksheet object representing the inserted worksheet. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |