Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Schedule a Macro

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Schedule a Macro

"macroplay" wrote in message
...
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Schedule a Macro

Workbook_Open event, which does not get stopped by the Shift
key?


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




"Rob Bovey" wrote in message
...
"macroplay" wrote in
message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Schedule a Macro

Hi Chip,

Yeah, it works in the File/Open menu as well. I think I was
confabulating this with trying to open an add-in without running the code.
Been a long day.

--
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

"Chip Pearson" wrote in message
...
Workbook_Open event, which does not get stopped by the Shift key?


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




"Rob Bovey" wrote in message
...
"macroplay" wrote in message
...
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






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Schedule a Macro

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

john


"Rob Bovey" wrote:

Hi Chip,

Yeah, it works in the File/Open menu as well. I think I was
confabulating this with trying to open an add-in without running the code.
Been a long day.

--
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

"Chip Pearson" wrote in message
...
Workbook_Open event, which does not get stopped by the Shift key?


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




"Rob Bovey" wrote in message
...
"macroplay" wrote in message
...
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







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule a Macro to run every 5 minutes Atheobody Excel Discussion (Misc queries) 6 September 9th 06 06:13 PM
Create patient schedule based on master therapist schedule PapaBear Excel Discussion (Misc queries) 8 October 12th 05 04:56 AM
How to schedule a Macro ? Ayato[_9_] Excel Programming 1 June 18th 04 10:39 PM
Task Schedule for Macro mike0021[_3_] Excel Programming 3 May 25th 04 08:14 PM
Schedule a Macro Jim Simpson Excel Programming 2 May 20th 04 06:08 PM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"