My program allows the user to process some files and then examine
them in Excel. Once the user has made some decisions based on what
he sees, he can then proceed with many more files.
My problem is that if he forgets to close all of the windows in
Excel before proceeding, then my program halts with ERR = 70 when
trying to write new data to the file he left open in Excel.
I can find the window and close it, but if he has several open,
then the ones not showing cant be found. I could try sending a
Quit to Excel (drastic), but I would really like to just write
to the file while its still open in Excel.
The user can figure it out afterwards. But I hate to have my
program thwarted by an open file.
Is this possible somehow?
------------------
Kind Regards
Mike
them in Excel. Once the user has made some decisions based on what
he sees, he can then proceed with many more files.
My problem is that if he forgets to close all of the windows in
Excel before proceeding, then my program halts with ERR = 70 when
trying to write new data to the file he left open in Excel.
I can find the window and close it, but if he has several open,
then the ones not showing cant be found. I could try sending a
Quit to Excel (drastic), but I would really like to just write
to the file while its still open in Excel.
The user can figure it out afterwards. But I hate to have my
program thwarted by an open file.
Is this possible somehow?
------------------
Kind Regards
Mike
Comment