I am trying to write output to an Excel workbook using ExcelLibrary. I want this workbook to contain only one sheet but I can’t find any way to either create a workbook with only one sheet or remove the extra sheets after creation. All of the examples I have found do not work.
Any advice is appreciated.
Regards.
The Worksheets are available to you via the
Worksheetsproperty, which is simply a generic list of Worksheet objects – i.e.List<Worksheet>.You can treat this list like any generic
List<T>and useClear(),Remove(), etc. to manipulate the list of worksheets.