Application类好象没有这个事件,相关事件基本上都是针对workbook,sheet和窗口的。

解决方案 »

  1.   

    那有没有其他变通的方法得到excel的关闭事件呢?
      

  2.   

    objExcel.Quit();
    objExcel = Nothing;
    objBook = Nothing;
      

  3.   

    exc.Quit();
    System.Runtime.InteropServices.Marshal.ReleaseComObject(sheets);
    System.Runtime.InteropServices.Marshal.ReleaseComObject(workbooks);
    System.Runtime.InteropServices.Marshal.ReleaseComObject(exc);
    sheets = null ;
    workbooks = null ; 
    exc = null ;
    GC.Collect() ;
      

  4.   

    人气很旺啊!你在家发贴子吗?
    hao