DIAdem Help

Method: Remove for Sheets

  • Updated2024-09-12
  • 1 minute(s) read

Method: Remove for Sheets

Deletes one element from the Sheets collection.

Object.Remove(NameOrIndex)
ObjectSheets
Object with this method
NameOrIndexVariant
Specifies the name or the index of the worksheet that is to be deleted.

The following example deletes the current worksheet:

VBScriptPython

 

Dim MyName: MyName = View.ActiveSheet.Name
Call View.Sheets.Remove(MyName)