跳到主要内容

AddSheet

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

Syntax

expression.AddSheet(sName);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
sNameRequiredstringThe name of a new worksheet.

Returns

This method doesn't return any data.

Example

This example creates a new worksheet.

var oSheet = Api.AddSheet("New sheet");