C
ChrisBat
Hi,
I have a macro that is operated by a button on a form. In
brief, this macro is supposed to download a dataset from
an intranet page (in Excel), clean and manipulate the
data, resave the spreadsheet, and then close Excel,
returning back to the Access form that was used to open
the original spreadsheet.
I am having a couple of problems:
(1) The code runs fine for a couple of times, but after a
while, when I try and delete the spreadsheet, it says that
the file is still open; this is not possible, because it
is on my desktop, MS Access has also closed (see below)
and there is no indication of Excel being open when I go
into task manager. HOWEVER, what is open (according to
the Processes tab) is excel.exe and agentsvr.exe. Once I
close these, I can delete the spreadsheet without a
problem. How do I stop this from continuing?
(2) The macro also closes Access instead of just excel -
any ideas how I can close one and keep the other open?
Any help would be appreciated.
Thanks for your time,
Chris
I have a macro that is operated by a button on a form. In
brief, this macro is supposed to download a dataset from
an intranet page (in Excel), clean and manipulate the
data, resave the spreadsheet, and then close Excel,
returning back to the Access form that was used to open
the original spreadsheet.
I am having a couple of problems:
(1) The code runs fine for a couple of times, but after a
while, when I try and delete the spreadsheet, it says that
the file is still open; this is not possible, because it
is on my desktop, MS Access has also closed (see below)
and there is no indication of Excel being open when I go
into task manager. HOWEVER, what is open (according to
the Processes tab) is excel.exe and agentsvr.exe. Once I
close these, I can delete the spreadsheet without a
problem. How do I stop this from continuing?
(2) The macro also closes Access instead of just excel -
any ideas how I can close one and keep the other open?
Any help would be appreciated.
Thanks for your time,
Chris