Method: Remove for Sheets
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: Remove for Sheets
Method: Remove for Sheets
Deletes a worksheet in DIAdem REPORT.
Object.Remove(NameOrIndex)
| Object | Sheets Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the worksheet. |
The following example deletes the worksheet with the highest index:
| VBScript | Python |
Dim iSheetCount iSheetCount = Report.Sheets.Count If iSheetCount > 1 Then Call Report.Sheets.Remove(iSheetCount) End If