>Sorry, i don't know what mean introduce "Excel" ?
>
>I only this code, i reference Com, (Microsoft Excel 9.0 Object Library)
>
>I can generate the excel file , but if i quit the excel or save as excel file after exit. In this time, i call the task Manager , still see excel.exe is running?
>How can i do ..... thank you
Instead of Microsoft Excel 9.0 Object Library, and instead of calling CreateObject, try:
Dim XL As New Microsoft.Office.Interop.Excel.Application
Dim WB As Microsoft.Office.Interop.Excel.Workbook
Dim Sheet As Microsoft.Office.Interop.Excel.Worksheet
Good Luck