←Select platform

RemoveSheet Method

Summary

Removes a sheet from the Excel workbook by name. Allows for the deletion of a specified sheet within the workbook, facilitating dynamic management of the workbook's content and structure.

Syntax

C#
C++/CLI
Python
public void RemoveSheet( 
   string sheetName 
) 
public:  
   void RemoveSheet( 
      String^ sheetName 
   ) 
def RemoveSheet(self,sheetName): 

Parameters

sheetName

A string specifying the name of the sheet to be removed. The sheet name must exactly match an existing sheet in the workbook, including case sensitivity.

Requirements

Target Platforms

See Also

LEADWorkbook Class

LEADWorkbook Members

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.4.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.LEADOffice Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.