Good day
I have Excel 2010 spread sheet that I need to automate and run using the Windows 7 task scheduler. The spread sheet works fine "interactively"; it opens, performs the tasks that it needs to and then closes down.
When I try to run the spread sheet via the Windos scheduler, it behaves differently i.e. a userform that should timeout after 5 seconds does not appear (it seems to be in background somewhere) and the spread sheet stays open waiting for keyboard input.
Is there a property that will tell me if the spread sheet was opened interactively or from the scheduler? I could then skip the userform if I know the spread sheet has been run from the sceduler.
Many thanks for taking the time to review.
I have Excel 2010 spread sheet that I need to automate and run using the Windows 7 task scheduler. The spread sheet works fine "interactively"; it opens, performs the tasks that it needs to and then closes down.
When I try to run the spread sheet via the Windos scheduler, it behaves differently i.e. a userform that should timeout after 5 seconds does not appear (it seems to be in background somewhere) and the spread sheet stays open waiting for keyboard input.
Is there a property that will tell me if the spread sheet was opened interactively or from the scheduler? I could then skip the userform if I know the spread sheet has been run from the sceduler.
Many thanks for taking the time to review.