Get Started
Usage API
More information

AddSheet

AddSheet(sName)

Create a new worksheet. The new worksheet becomes the active sheet.

Parameters:

Name Type Description
sName string

The name of a new worksheet.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oSheet = Api.AddSheet("New sheet");
builder.SaveFile("xlsx", "AddSheet.xlsx");
builder.CloseFile();

Resulting document