PC Review


Reply
Thread Tools Rate Thread

Auto launch application & run macro

 
 
=?Utf-8?B?Q2hlcnls?=
Guest
Posts: n/a
 
      3rd Apr 2007
Hi everyone,
I want to schedule my macro to run daily at 5:00 am. From reading thru the
threads, I believe I need to record a Sub Auto_Open to launch the Excel
application and to then run the macro? In setting up the scheduled task, the
wizard will ask for the application. How do you designate the vba code to
run? Thanks for all the great knowledge y'all have provided for novices like
me!
Cheryl
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      3rd Apr 2007
Cheryl

Sub Auto_Open does not launch Excel.

Windows Task scheduler starts Excel at the given time with your workbook to
open.

The Sub Auto_Open() runs the code when the workbook opens.


Gord Dibben MS Excel MVP


On Tue, 3 Apr 2007 13:08:01 -0700, Cheryl <(E-Mail Removed)>
wrote:

>Hi everyone,
>I want to schedule my macro to run daily at 5:00 am. From reading thru the
>threads, I believe I need to record a Sub Auto_Open to launch the Excel
>application and to then run the macro? In setting up the scheduled task, the
>wizard will ask for the application. How do you designate the vba code to
>run? Thanks for all the great knowledge y'all have provided for novices like
>me!
>Cheryl


 
Reply With Quote
 
=?Utf-8?B?Q2hlcnls?=
Guest
Posts: n/a
 
      4th Apr 2007
Ok, what is the easiest method to run a macro as an unattended task w/o
opening Excel?

Thanks,
Cheryl


"Gord Dibben" wrote:

> Cheryl
>
> Sub Auto_Open does not launch Excel.
>
> Windows Task scheduler starts Excel at the given time with your workbook to
> open.
>
> The Sub Auto_Open() runs the code when the workbook opens.
>
>
> Gord Dibben MS Excel MVP
>
>
> On Tue, 3 Apr 2007 13:08:01 -0700, Cheryl <(E-Mail Removed)>
> wrote:
>
> >Hi everyone,
> >I want to schedule my macro to run daily at 5:00 am. From reading thru the
> >threads, I believe I need to record a Sub Auto_Open to launch the Excel
> >application and to then run the macro? In setting up the scheduled task, the
> >wizard will ask for the application. How do you designate the vba code to
> >run? Thanks for all the great knowledge y'all have provided for novices like
> >me!
> >Cheryl

>
>

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      4th Apr 2007
Cheryl,
Not possible; Excel must be open for macros to run.
As Gord says, you can use the Windows Scheduler to open an Excel file at the
required time.
Code in the Auto_Open routine (or preferably the Workbook_Open event) will
then run.

NickHK

"Cheryl" <(E-Mail Removed)> wrote in message
news:3E260121-10E6-4FCE-BEA4-(E-Mail Removed)...
> Ok, what is the easiest method to run a macro as an unattended task w/o
> opening Excel?
>
> Thanks,
> Cheryl
>
>
> "Gord Dibben" wrote:
>
> > Cheryl
> >
> > Sub Auto_Open does not launch Excel.
> >
> > Windows Task scheduler starts Excel at the given time with your workbook

to
> > open.
> >
> > The Sub Auto_Open() runs the code when the workbook opens.
> >
> >
> > Gord Dibben MS Excel MVP
> >
> >
> > On Tue, 3 Apr 2007 13:08:01 -0700, Cheryl

<(E-Mail Removed)>
> > wrote:
> >
> > >Hi everyone,
> > >I want to schedule my macro to run daily at 5:00 am. From reading thru

the
> > >threads, I believe I need to record a Sub Auto_Open to launch the Excel
> > >application and to then run the macro? In setting up the scheduled

task, the
> > >wizard will ask for the application. How do you designate the vba code

to
> > >run? Thanks for all the great knowledge y'all have provided for

novices like
> > >me!
> > >Cheryl

> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Launch of Macro =?Utf-8?B?RGFyZW4=?= Microsoft Excel Misc 1 20th Mar 2007 08:10 PM
Macro launch - Button vs Manual launch , has different results. =?Utf-8?B?V2F5bmU=?= Microsoft Excel Programming 4 23rd Feb 2005 11:33 AM
Launch an imaging application within Windows forms application =?Utf-8?B?VkIgVXNlcg==?= Microsoft VB .NET 4 23rd Nov 2004 04:47 PM
a macro launch, get the quote number out of the excel cell, then auto save the sheet suee Microsoft Excel Programming 0 31st Mar 2004 06:00 AM
auto-launch a MACRO? d-cubed Microsoft Excel Programming 4 22nd Dec 2003 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:41 PM.