i have tried this for deleting A,B,C coloums but getting error
excelRange.get_Range("A,B,C", Missing.Value);
excelRange.EntireColumn.Delete(Missing.Value);
System.Runtime.InteropServices.Marshal.ReleaseComObject(excelRange);
Ganesan CPosted Aug 25, 2021, 7:05 PM
Try this.
Leon DPosted Aug 26, 2021, 1:16 AM
You can install Free Spire.XLS library via nuget, and then use the following code to delete columns with ease.
Ranjith BalanPosted Aug 25, 2021, 7:20 PM