VB操作Excel后的问题
使用以下VB代码操作Excel以后,发现进程中Excel并未关闭:Dim xlApp As Object 'Excel.Application
Dim xlBook As Object 'Excel.Workbook
Dim xlSheet As Object 'Excel.Worksheet
Screen.MousePointer = vbHourglass
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets(1)
......
xlApp.Visible = True
Screen.MousePointer = vbDefault
xlApp.Quit
Set xlApp = Nothing
Set xlBook = Nothing
Set xlSheet = Nothing
代码执行后,显示Excel并提示是否保存,无论选择保存与否,当Excel关闭后,打开任务管理器发现Excel仍存在,请教各位大大,如何解决?