I am using code to export data from my database into Excel using DoCmd.TransferSpreadsheet. Everything has been working wonderfully.
However, today somebody attempted to do the export not realizing that he already had the target spreadsheet open. The result is that Access and Excel both start using approximately 50% of the processing power and stop responding. There seems to be no end to this. If I use Task Manager to kill Excel, cpu usage for Access jumps to roughly 100%, but it still does not recover.
Is there any way to determine if a spreadsheet is already open before attempting to export to it?
However, today somebody attempted to do the export not realizing that he already had the target spreadsheet open. The result is that Access and Excel both start using approximately 50% of the processing power and stop responding. There seems to be no end to this. If I use Task Manager to kill Excel, cpu usage for Access jumps to roughly 100%, but it still does not recover.
Is there any way to determine if a spreadsheet is already open before attempting to export to it?