Deletes the worksheet from the workbook.
[Visual Basic] Sub Delete() [C#] void Delete(); [C++] void Delete(); [JScript] function Delete();
This example deletes the last worksheet from the workbook.
[C#]
book.Worksheets[book.Worksheets.Count].Delete();
[Visual Basic]
book.Worksheets(book.Worksheets.Count).Delete()
[C++]
book->Worksheets->Item[book->Worksheets->Count]->Delete();
IWorksheet Interface | NativeExcel Namespace