Fuga
Registered User.
- Local time
- Today, 17:20
- Joined
- Feb 28, 2002
- Messages
- 566
Hi,
I´m having trouble with an automated process.
First, access exports a table to a text file.
Second, excel opens the file and runs a macro on a workbook that contains linked data to the file.
The workbook is linked back in access.
A few days ago I started having problems. Sometimes the file can´t be exported because of authority problems (this is because the excel object doesn´t quit after having done the operations but locks the file so that the next time the process runs, it halts)
Question: Is there a command in VBA that absolutely certain kills the instance of excel? (in worst case I´m ok with a command that kills all instances of excel)
I also have problems within the macro itself. Excel complains about the "range method of global failed" or something like that.
The thing is, it works when I run just this part of the process, but not combined with a few others.
It worked fine until a few days ago, and the only thing I´ve done is that I have added a few graphs on the main form.
Has anyone had similar experiences? Might there be some sort of memory insufficiency?
Fuga.
I´m having trouble with an automated process.
First, access exports a table to a text file.
Second, excel opens the file and runs a macro on a workbook that contains linked data to the file.
The workbook is linked back in access.
A few days ago I started having problems. Sometimes the file can´t be exported because of authority problems (this is because the excel object doesn´t quit after having done the operations but locks the file so that the next time the process runs, it halts)
Question: Is there a command in VBA that absolutely certain kills the instance of excel? (in worst case I´m ok with a command that kills all instances of excel)
I also have problems within the macro itself. Excel complains about the "range method of global failed" or something like that.
The thing is, it works when I run just this part of the process, but not combined with a few others.
It worked fine until a few days ago, and the only thing I´ve done is that I have added a few graphs on the main form.
Has anyone had similar experiences? Might there be some sort of memory insufficiency?
Fuga.
Last edited: