/
excelRemoveSheet

excelRemoveSheet

Description

Removes the selected sheet from an open workbook.

Parameters

Return Type

Boolean

Returns true if the operation was successful, false otherwise.

Example

Opens a workbook, deletes a sheet and then saves and closes the workbook.

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

Result: The 'Venemous Snakes' sheet will be removed.

Click here to download the workbook used in this example.

See also

Related content

excelRemoveSheet
More like this
excelCloseWorkbook
excelCloseWorkbook
More like this
Excel macro - Cloud
Excel macro - Cloud
More like this
excelRemoveRow
More like this
excelOpenWorkbook
excelOpenWorkbook
More like this
excelAddSheet
More like this