I have an Excel workbook with many sheets. I want to delete all sheets except three of them.
In particular, I would like to know if there is a way to delete sheets using the sheet name instead of ordinals (sheet number).
I use excel interop and C # to work with Excel.
Microsoft.Office.Interop.Excel.Application xlApp = null; Excel.Workbook xlWorkbook = null; Excel.Sheets xlSheets = null; Excel.Worksheet xlNewSheet = null;
user1144596
source share