C
ChrisBat
Hi,
I posted a question last week, got a response, tried it,
it doesn't work.
What I'm trying to do in brief is click a button on an
access form, open Excel, download a report from my
intranet, manipulate and clean the data, open my report
template (also in Excel), transfer the data, and then save
the new report. I then need to close Excel and return to
the form. The problem that I am having is that I cannot,
despite all my best efforts, get the process excel.exe to
close. The beginning and the end of my code reads as
follows:
Dim ex as New Excel.Application
Dim wrkbk as Excel.Workbook
Dim xlApp as Excel.Application
Set xlApp = Excel.Application
Set wrkbk = ex.Workbooks.Add
I then go on with my code, ending with:
ex.Quit
wrkbk.Quit
xlApp.Quit
Set ex = Nothing
Set wrkbk = Nothing
Set xlApp = Nothing
Although this seems to me to be the format followed by the
MSDN, as I said above, excel.exe just will not close.
Does anybody *please* have any suggestions???
Thank you soooo much in advance...
Chris
I posted a question last week, got a response, tried it,
it doesn't work.
What I'm trying to do in brief is click a button on an
access form, open Excel, download a report from my
intranet, manipulate and clean the data, open my report
template (also in Excel), transfer the data, and then save
the new report. I then need to close Excel and return to
the form. The problem that I am having is that I cannot,
despite all my best efforts, get the process excel.exe to
close. The beginning and the end of my code reads as
follows:
Dim ex as New Excel.Application
Dim wrkbk as Excel.Workbook
Dim xlApp as Excel.Application
Set xlApp = Excel.Application
Set wrkbk = ex.Workbooks.Add
I then go on with my code, ending with:
ex.Quit
wrkbk.Quit
xlApp.Quit
Set ex = Nothing
Set wrkbk = Nothing
Set xlApp = Nothing
Although this seems to me to be the format followed by the
MSDN, as I said above, excel.exe just will not close.
Does anybody *please* have any suggestions???
Thank you soooo much in advance...
Chris