No matter what language, every time I use the Excel object, I have this problem.
Say I'm running a loop, opening & closing workbooks.
The visible property on the Application class is set to false.
If I open an Excel file from the file system manually Excel will show & hide every file that it opens from the code until it is done.
The problem I suspect is because when I open the file manually it uses the same Excel process instantiated in code.
The problem is that I could also break the running code if I manage to close the Excel window.
Is there a way to prevent the OS from using the same process that I created in the code?
Is there a way to keep the automated app isolated from other operations that involve the Excel process so the two can not interfere with one another with the exception that if they happened to access the same file?