Excel Process not closing in VB.net

后端 未结 8 1103
星月不相逢
星月不相逢 2020-12-03 09:00

I am creating an excel file using interop.excel and the process is not closing. This is the code i am trying to use.

 Private Sub converToExcel(fileLoc As S         


        
8条回答
  •  爱一瞬间的悲伤
    2020-12-03 09:25

    It's just as simple as adding this line in your code, just after opening the Workbook:

    oExcel.displayalerts = False

提交回复
热议问题