T
touf
Hi,
I use the folowing code to create a new Excel file using a query
It creates an excel file and save it on the disc, but When I double-clic on
it (explorer) it open Excel and bloc,(don't display the data), it does the
same with all excel files.
I've found that it creates a process called Excel, when I end it (Windows
Task Manager) the problem is resolved.
I think that I need somewhere to kill the process..(I use oExcel.Quit() but
doesn't do the job)
Any help please.
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
oExcel = CreateObject("Excel.Application")
oBook = oExcel.Workbooks.Add
oSheet = oBook.Worksheets(1)
.....
.... code......
.....
oBook.SaveAs(fileName)
oQryTable = Nothing
oSheet = Nothing
oBook = Nothing
oExcel.Quit()
oExcel = Nothing
It creates an excel file and save it on the disc, but When I double-clic on
it (explorer) it open Excel and bloc,(don't display the data), it does the
same with all excel files.
I've found that it create a process called Excel, when I end it the problem
is resolved.
I use the folowing code to create a new Excel file using a query
It creates an excel file and save it on the disc, but When I double-clic on
it (explorer) it open Excel and bloc,(don't display the data), it does the
same with all excel files.
I've found that it creates a process called Excel, when I end it (Windows
Task Manager) the problem is resolved.
I think that I need somewhere to kill the process..(I use oExcel.Quit() but
doesn't do the job)
Any help please.
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
oExcel = CreateObject("Excel.Application")
oBook = oExcel.Workbooks.Add
oSheet = oBook.Worksheets(1)
.....
.... code......
.....
oBook.SaveAs(fileName)
oQryTable = Nothing
oSheet = Nothing
oBook = Nothing
oExcel.Quit()
oExcel = Nothing
It creates an excel file and save it on the disc, but When I double-clic on
it (explorer) it open Excel and bloc,(don't display the data), it does the
same with all excel files.
I've found that it create a process called Excel, when I end it the problem
is resolved.