The createSheet function is established to create a new sheet or clone an existed sheet.
var excel = new Excel("test.xlsx"); excel.createSheet("blankSheet").createSheet("Sheet1Clone", "Sheet1");
Calling | Returning |
---|---|
Excel . createSheet ( sheetName ) | Excel |
Excel . createSheet ( sheetName , copyFrom ) | Excel |
Parameters | Type | Description |
---|---|---|
sheetName | String | The new sheet name. |
copyFrom | String | The existed sheet name. |