I have an Excel file with macros that I intend to call automatically when the Excel file is opened. The file will be opened regularly via Task Scheduler.
However, there will be times when I'll need to open the file manually and call the macros via their control buttons. I'm struggling because if I open the file manually, the auto_run kicks on the macros, which I don't want to happen when I open it myself.
Thus, I am wondering if there is a way for a message box to appear via the auto_run macro that displays a 10 second timer that counts down. Essentially, the message box would be looking for the user to press "OK" to abort the auto_run macro, which would allow me to poke around the file and call the individual macros manually. If, after 10 seconds, OK is not pressed, then the auto_run macro proceeds as planned. This way it can still be called via task scheduler and run as directed on auto pilot.
Is this even remotely possible?
Thanks!
However, there will be times when I'll need to open the file manually and call the macros via their control buttons. I'm struggling because if I open the file manually, the auto_run kicks on the macros, which I don't want to happen when I open it myself.
Thus, I am wondering if there is a way for a message box to appear via the auto_run macro that displays a 10 second timer that counts down. Essentially, the message box would be looking for the user to press "OK" to abort the auto_run macro, which would allow me to poke around the file and call the individual macros manually. If, after 10 seconds, OK is not pressed, then the auto_run macro proceeds as planned. This way it can still be called via task scheduler and run as directed on auto pilot.
Is this even remotely possible?
Thanks!