Removes the sheet with the specified index.
 

1 excel.Workbook.removeSheetAt

<excel.Workbook.removeSheetAt index='index'>
    <wb /> +
</excel.Workbook.removeSheetAt>
Example

Create a book, count the number of sheets, remova a sheet and recount.

Copy
<xsql-script name='sample_excel_Workbook_removeSheetAt'>
	<body>
		<set name='wb'>
			<excel.Workbook />
		</set>
		
		<excel.Workbook.createSheet name='sheet1'>
			<wb />
		</excel.Workbook.createSheet>
		
		<excel.Workbook.createSheet name='sheet2'>
			<wb />
		</excel.Workbook.createSheet>
		
		<println>
			Previous number of sheets:
			<excel.Workbook.getNumberOfSheets>
			    <wb />
			</excel.Workbook.getNumberOfSheets>
		</println>
		
		<excel.Workbook.removeSheetAt index='0'>
			<wb />
		</excel.Workbook.removeSheetAt>
		
		<println>
			Posterior number of sheets:
			<excel.Workbook.getNumberOfSheets>
			    <wb />
			</excel.Workbook.getNumberOfSheets>
		</println>
	</body>
</xsql-script>