Schedule a Macro

G

Guest

Can the windows task scheduler be setup to open an excel workbook and run a
specific macro. I know I could use auto_open but I've found this problematic
since there is no way to stop the auto_open code from running so if there's a
bug it's impossible to fix (pressing shift while opening the file doesn;t
work).

thanks
 
R

Rob Bovey

macroplay said:
Can the windows task scheduler be setup to open an excel workbook and run
a
specific macro. I know I could use auto_open but I've found this
problematic
since there is no way to stop the auto_open code from running so if
there's a
bug it's impossible to fix (pressing shift while opening the file doesn;t
work).

I've used Auto_Open macros for as long as they've been around, and
holding down the Shift key while opening the workbook always stops them from
running. Are you sure you aren't confusing this with the Workbook_Open
event, which does not get stopped by the Shift key?

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm
 
C

Chip Pearson

Workbook_Open event, which does not get stopped by the Shift

Indeed, holding down the SHIFT key does not stop Workbook_Open
when you open the file from a folder window (double clicking).
However, the SHIFT key does stop Workbook_Open when you open the
file from the MRU list on the File menu.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
G

Guest

Yes, thank you. The auto-open code does not get run by pressing shift when
opening the file from the MRU list. Thanks,

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top