Skip to content
Julian Halliwell edited this page Sep 20, 2021 · 5 revisions

Removes a sheet specified by number from a spreadsheet workbook.

removeSheetNumber( workbook, sheetNumber )

Required arguments

  • workbook spreadsheet object
  • sheetNumber numeric: the number of the sheet to remove

Chainable? Yes.

Example

spreadsheet = New spreadsheet();
workbook = spreadsheet.new(); //creates "sheet1" by default
spreadsheet.createSheet( workbook,"sheet2" );
spreadsheet.removeSheet( workbook,2 );
Clone this wiki locally