Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Automatically run an Excel macro

I have an Excel macro theat I would like to automatically run using Windows
XP Scheduled Tasks.

Is this possible...if I could invoke the macro via a BAT or CMD file that
would be great.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Automatically run an Excel macro

Put your code in a subroutine named Auto_Open, then use the task scheduler to
open your Excel file. Be sure your macro security is such that your macro
can run without any prompts.

"sxhwabbiemike" wrote:

I have an Excel macro theat I would like to automatically run using Windows
XP Scheduled Tasks.

Is this possible...if I could invoke the macro via a BAT or CMD file that
would be great.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Automatically run an Excel macro

I did that, however whenever I try t view the file that was created by the
macro it reruns the macro.

I woould like to save the file to a common site (iKnow) for viewing by
others without it being recreated each time someone wants to view it.

"bpeltzer" wrote:

Put your code in a subroutine named Auto_Open, then use the task scheduler to
open your Excel file. Be sure your macro security is such that your macro
can run without any prompts.

"sxhwabbiemike" wrote:

I have an Excel macro theat I would like to automatically run using Windows
XP Scheduled Tasks.

Is this possible...if I could invoke the macro via a BAT or CMD file that
would be great.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Automatically run an Excel macro

There are several ways you could allow the macro to start automatically (via
the Auto_Open) and conditionally exit before it runs... For your purposes,
it sounds like you might just check the path (activeworkbook.path) and exit
if it's not your local copy. Also, FYI, if the file is found via File
Open, then shift-click will open the file without executing the macro (vs
clicking on Open which will open and execute).

"sxhwabbiemike" wrote:

I did that, however whenever I try t view the file that was created by the
macro it reruns the macro.

I woould like to save the file to a common site (iKnow) for viewing by
others without it being recreated each time someone wants to view it.

"bpeltzer" wrote:

Put your code in a subroutine named Auto_Open, then use the task scheduler to
open your Excel file. Be sure your macro security is such that your macro
can run without any prompts.

"sxhwabbiemike" wrote:

I have an Excel macro theat I would like to automatically run using Windows
XP Scheduled Tasks.

Is this possible...if I could invoke the macro via a BAT or CMD file that
would be great.

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
create a macro to automatically open excel [email protected] uk Excel Discussion (Misc queries) 1 July 20th 08 09:42 PM
cannot get my excel personal macro workbook to load automatically shjco Excel Discussion (Misc queries) 0 December 13th 07 05:57 PM
excel macro to automatically change default printer James Bromley Excel Discussion (Misc queries) 1 January 15th 06 11:42 AM
How do you run an excel macro automatically overnight? Scott J Excel Discussion (Misc queries) 1 January 6th 06 05:54 PM
Running a Macro automatically from Excel Brakeshoe Excel Worksheet Functions 1 July 13th 05 11:23 PM


All times are GMT +1. The time now is 05:19 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"