ExcelEraseSheet
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Erases specified sheet from specified Excel file.
Syntax
(iSuccess:int) ExcelEraseSheet filepath:string WorksheetID:int
Or:
(iSuccess:int) XLSEraseSheet filepath:string WorksheetID:int
Example
ExcelEraseSheet "aaExcelFile" 0
Will erase all cells in Sheet with index 0 from "aaExcelFile.xls"
Notes
- if file doesn't exists or can't be loaded (i.e. - it's open in Excel at the moment) - function returns -1.