I have some windows tasks that are scheduled every day for a specific time. Those tasks have the action to open an excel workbook, which includes some vba (create reports and send via mail) that is running on workbook_open and closes automatically after all code is done. Because of some internal stuff, I have to run those tasks with the option "Run whether user is logged on or not". So the excel instance will run in background. If I log on with the same user, the excel is not seen. Only as a process in details. I know, this is the sense of the task option "Run whether user is logged on or not". If the excel tool is working fine this is no problem. But sometimes it's running on an error which makes the tool to never complete. Because the excel is hidden I can not have a look at the debugger to identify the problem, due to the windows task option...
Do anyone know if it is possible to open that hidden excel workbook which is running on error by logging on with the same user that is set for the scheduled windows task?
I tried it with some code that opens hidden instances of excel, but that wasn't working. I also searched for scripts that opens hidden excel workbooks by the PID. But I found nothing...
PS: Sorry for my English, but I hope its understandable.
UPDATE 2020-07-08: To clarify - Because of windows update processes that will reboot windows each week, I have to set the jobs with the option described above, to be sure they are getting executed. If I got it right, there is no way to make those excel files visible if started in the background by the windows scheduler, even not if I logon with the same user after the job was startet by the scheduler... SOLUTION: I will switch to a windows server installation, that I am able to control the update process by myself. So I can be logged on permanently and am able to run the jobs without the "background"-option of the scheduler.