......
xlbook.Close(False)
xl.Quit()
NAR(xlsheet)
NAR(xlbook)
NAR(xl)
GC.Collect()
GC.WaitForPendingFinalizers()
......
Private Sub NAR(ByRef o As Object)
Try
System.Runtime.InteropServices.Marshal.ReleaseComObject(o)
Catch
Finally
o = Nothing
End Try
End Sub
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。