DIAdem Help

Method: Remove for Sheets

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

Method: Remove for Sheets

Deletes a worksheet in DIAdem REPORT.

Object.Remove(NameOrIndex)
ObjectSheets
Object with this method
NameOrIndexVariant
Specifies the name or the index of the worksheet.

The following example deletes the worksheet with the highest index:

VBScriptPython

 

Dim iSheetCount
iSheetCount = Report.Sheets.Count
If iSheetCount > 1 Then
  Call Report.Sheets.Remove(iSheetCount)
End If