你程序结束后,应该
set slsheet=nothing
xlapp.quit
并且创建excel对象时,首先要判断是否在内存中已经有excel对象,如有则用getobject,没有则新建。