Dim s1 as Excel.Worksheet s1 = wb.Sheets("Sheet1") s1.Visible = Excel.XlSheetVisibility.xlSheetVisible s1.Delete()
You need to change the visibility because you cannot delete the sheet with the visibility set in Excel.XlSheetVisibility.xlSheetVeryHidden
user2703636
source share