Method: Remove for Sheets
- Updated2024-09-12
- 1 minute(s) read
DIAdem VIEW > Methods > Method: Remove for Sheets
Method: Remove for Sheets
Deletes one element from the Sheets collection.
Object.Remove(NameOrIndex)
| Object | Sheets Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the worksheet that is to be deleted. |
The following example deletes the current worksheet:
| VBScript | Python |
Dim MyName: MyName = View.ActiveSheet.Name Call View.Sheets.Remove(MyName)