How to Save/Overwrite existing Excel file with Excel Interop - C#

后端 未结 3 1401
深忆病人
深忆病人 2020-12-30 01:46

Is there a way to save changes to an excel spreadsheet through the excel interop (in this case I am adding a worksheet to it) without having it prompt the user if they want

3条回答
  •  庸人自扰
    2020-12-30 01:51

    Only this code will Require for stop override alert or Template already in use

    ExcelApp.DisplayAlerts = False

提交回复
热议问题