G
Gillian g
I have an Access2000 app where i use automation to create
a new excel document from a template. using the following
code:
*--------
Set xlApp = CreateObject("Excel.Application")
Set xlWorkBook = Excel.Workbooks.Add(sTemplate)
Set xlWorkSheet = xlWorkBook.Sheets(1)
*--------
then i do some processing to dump values into the sheet.
then i save and exit using this code
*--------
Call xlWorkBook.SaveAs(sExportFile)
xlWorkBook.Close
xlApp.Quit
Set xlWorkSheet = Nothing
Set xlWorkBook = Nothing
Set xlApp = Nothing
*--------
the problem is that excel2000 never quits. it disappears
but is still visible in the detailed process list. Unless
I actually quit access it wont go away. even if i leave
the instance visible after processing and then close it
manually it wont completely close until i close access.
for reference i am calling this from a function in a
standard module with all local variables (to the
function). the cleanup code is always called whether
there is an error or not.
been frustrated by this one for a while so any guesses
would help. TIA
cheers
a new excel document from a template. using the following
code:
*--------
Set xlApp = CreateObject("Excel.Application")
Set xlWorkBook = Excel.Workbooks.Add(sTemplate)
Set xlWorkSheet = xlWorkBook.Sheets(1)
*--------
then i do some processing to dump values into the sheet.
then i save and exit using this code
*--------
Call xlWorkBook.SaveAs(sExportFile)
xlWorkBook.Close
xlApp.Quit
Set xlWorkSheet = Nothing
Set xlWorkBook = Nothing
Set xlApp = Nothing
*--------
the problem is that excel2000 never quits. it disappears
but is still visible in the detailed process list. Unless
I actually quit access it wont go away. even if i leave
the instance visible after processing and then close it
manually it wont completely close until i close access.
for reference i am calling this from a function in a
standard module with all local variables (to the
function). the cleanup code is always called whether
there is an error or not.
been frustrated by this one for a while so any guesses
would help. TIA
cheers