Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default Macro fire at given time, through command prompt

Hi

We have a macro that does some formatting on a sheet. Is
there any way of prompting this macro to fire from the
windows command prompt, and to make it fire automatically
once a day?

once a day, a file is deposited in the same location
which is then amended. The process is the same everytime,
we'd just liek ti to sort itself out without intervention

TIA
tim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Macro fire at given time, through command prompt

here is a sub i use to start a macro (macAStart) at 5 am
each morning(while i'm home still in bed)so that morning
reports will be on the printer when i get to work. The
whole routine launches 10 different macros in as many
files. it skipps sat and sun.
Sub macALaunchMR()

If Weekday(Now()) = 6 Then '1 = Sunday, 2 = Monday, 3 =
Tuesday, ect
Application.OnTime Now() + 2.5 + TimeValue
("00:00:03"), "macAStart"
Else
Application.OnTime TimeValue("05:00:00"), "macAStart"
End If

End Sub
look up the ontime event in help for more details
-----Original Message-----
Hi

We have a macro that does some formatting on a sheet. Is
there any way of prompting this macro to fire from the
windows command prompt, and to make it fire automatically
once a day?

once a day, a file is deposited in the same location
which is then amended. The process is the same everytime,
we'd just liek ti to sort itself out without intervention

TIA
tim
.

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
Macro to fire upon opening file David P. Excel Discussion (Misc queries) 3 June 26th 08 09:12 PM
Fire Macro from Cell Change Slashman Excel Worksheet Functions 7 October 17th 06 04:08 AM
Data Val list Excel 97 fire macro rgarber50 Excel Discussion (Misc queries) 4 October 9th 05 05:19 PM
Date/Time Picker Event Won't Fire Mark Driscol Excel Programming 1 July 14th 04 03:28 PM
keypress to fire command button mikewild2000[_21_] Excel Programming 7 February 1st 04 04:33 PM


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