.Net Excel Interop Deleting a worksheet

后端 未结 7 747
深忆病人
深忆病人 2020-12-01 17:53

I\'m trying to delete a worksheet from a excel document from a .Net c# 3.5 application with the interop Excel class (for excel 2003).

I try many things like :

<
相关标签:
7条回答
  • 2020-12-01 18:46
    Microsoft.Office.Interop.Excel.Worksheet worksheet = Microsoft.Office.Interop.Excel.Worksheet)xlWorkBook.Worksheets[1];
    worksheet.Delete();
    
    0 讨论(0)
提交回复
热议问题