Page tree
Skip to end of metadata
Go to start of metadata

Description

Inserts a new worksheet into the workbook at a specified position.

C#
vb.net

Parameters

name
The name of the sheet to create and insert.
position
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.

Examples

C#
vb.net
  • No labels