excelAddSheet

Description

Adds a new sheet to the open workbook.

Parameters

Return Type

Boolean

Returns true if the operation was successful, false otherwise.

Example

Add a new worksheet to an existing workbook.

use "excel"; int fid = openWorkbook("snakes.xlsx"); addSheet(fid, "Venemous Snakes", true); closeWorkbook(fid);

Click here to download the workbook used in this example.

See also