After more than one hour looking I found the answer:
xlApp.DisplayAlerts = false;
worksheet.Delete();
xlApp.DisplayAlerts = true;
More Related Contents:
- How do I properly clean up Excel interop objects?
- Reading Excel files from C#
- How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?
- Write Array to Excel Range
- Turn a simple C# DLL into a COM interop component
- Reading excel file using OLEDB Data Provider
- Exception from HRESULT: 0x800A03EC Error
- A Simple C# DLL – how do I call it from Excel, Access, VBA, VB6?
- How to read an excel file in C# without using Microsoft.Office.Interop.Excel libraries
- How to use Microsoft.Office.Interop.Excel on a machine without installed MS Office?
- EPPlus number format
- Microsoft.Office.Interop.Excel really slow
- Excel interop: _Worksheet or Worksheet?
- BUG: Can’t choose dates on a DatePicker that fall outside a floating VSTO Add-In
- How do I import from Excel to a DataSet using Microsoft.Office.Interop.Excel?
- How to make correct date format when writing data to Excel
- Set System Time Zone from .NET
- C# – How to copy a single Excel worksheet from one workbook to another?
- Importing Excel into a DataTable Quickly
- Add offset to IntPtr
- How to save workbook without showing save dialog with Excel interop?
- how to solve Exception:Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) in C#?
- Interoperating between Matlab and C#
- How to pass a nullable type to a P/invoked function [duplicate]
- Releasing temporary COM objects
- Printing Excel using Interop
- How to import all the Excel sheets to DataSet in C#
- Scientific notation when importing from Excel in .Net
- EPPlus – LoadFromCollection – Text converted to number
- As of today, what is the right way to work with COM objects? [duplicate]