DeleteSheet Method
Description
Deletes the specified sheet from the design-time or run-time data table.
Syntax
DataTable.DeleteSheet SheetID
Argument | Type | Description |
---|---|---|
SheetID |
Variant
|
Identifies the sheet to be returned. The SheetID can be the sheet name or index. Index values begin with 1.
|
Example
The following example uses the DeleteSheet method to delete the sheet, "MySheet" from the design-time or run-time data table.
DataTable.DeleteSheet "MySheet"