Creosote65
Technical User
Hi all,
I hope that this question hasn't been asked before, so here goes:
I have a vba routine that opens an Excel spreadsheet, manipulates the data, saves the changes, then performs the 'transferspreadsheet' command.
I run this routine from a menu button. At the beginning and end, I have confirmation popups that show the user that everything went well. I also included error handling for error type 1004, which happens when the user tries to re-use the same file. I also tried to include error handling for error 91, but I cannot bypass the standard vba error popup ("end", "debug").
From the point at which I get error 91, everything goes really screwy. The origin of my problem is that, although I included the close file "ActiveWorkbook.Close")and quit commands ("appExcel.Quit"), There remains an instance of Excel sitting in RAM, doing nothing. Sometimes it's more than one instance.
Sometimes, I find that closing Access will resolve the problem, but not as a rule. Sometimes I'll open Excel and will find my previous files sitting in auto recovery.
My question is: can I do anything in vba to kill all instances of Excel, visible or not.
Thanks in advance,
Creo!
I hope that this question hasn't been asked before, so here goes:
I have a vba routine that opens an Excel spreadsheet, manipulates the data, saves the changes, then performs the 'transferspreadsheet' command.
I run this routine from a menu button. At the beginning and end, I have confirmation popups that show the user that everything went well. I also included error handling for error type 1004, which happens when the user tries to re-use the same file. I also tried to include error handling for error 91, but I cannot bypass the standard vba error popup ("end", "debug").
From the point at which I get error 91, everything goes really screwy. The origin of my problem is that, although I included the close file "ActiveWorkbook.Close")and quit commands ("appExcel.Quit"), There remains an instance of Excel sitting in RAM, doing nothing. Sometimes it's more than one instance.
Sometimes, I find that closing Access will resolve the problem, but not as a rule. Sometimes I'll open Excel and will find my previous files sitting in auto recovery.
My question is: can I do anything in vba to kill all instances of Excel, visible or not.
Thanks in advance,
Creo!