Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default To run marco at a specific time in the day


Hi everyone,

I created a marco to copy and paste certain data from one spreadsheet
to another. I would like to run this marco at 8:00 pm every night. Is
there a way to set a timer to run this macro automatically at 8:00 pm
every night.

Any help on this will be greatly appreciated.

Regards,
Chuck


--
chucklee
------------------------------------------------------------------------
chucklee's Profile: http://www.excelforum.com/member.php...o&userid=29071
View this thread: http://www.excelforum.com/showthread...hreadid=487968

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default To run marco at a specific time in the day

Chuck,

Take a look in the help at "Application.OnTime"

Grtz,
Rody

"
"chucklee" schreef
in bericht ...

Hi everyone,

I created a marco to copy and paste certain data from one spreadsheet
to another. I would like to run this marco at 8:00 pm every night. Is
there a way to set a timer to run this macro automatically at 8:00 pm
every night.

Any help on this will be greatly appreciated.

Regards,
Chuck


--
chucklee
------------------------------------------------------------------------
chucklee's Profile:
http://www.excelforum.com/member.php...o&userid=29071
View this thread: http://www.excelforum.com/showthread...hreadid=487968



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default To run marco at a specific time in the day

Hi Chucklee,

See also Chip Pearson's OnTime page at:

http://www.cpearson.com/excel/ontime.htm


---
Regards,
Norman



"chucklee" wrote in
message ...

Hi everyone,

I created a marco to copy and paste certain data from one spreadsheet
to another. I would like to run this marco at 8:00 pm every night. Is
there a way to set a timer to run this macro automatically at 8:00 pm
every night.

Any help on this will be greatly appreciated.

Regards,
Chuck


--
chucklee
------------------------------------------------------------------------
chucklee's Profile:
http://www.excelforum.com/member.php...o&userid=29071
View this thread: http://www.excelforum.com/showthread...hreadid=487968



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default To run marco at a specific time in the day


thanks for your help.

now, I have the following codes written:


Sub Archive()

Application.OnTime TimeValue("12:02:00"), "Grab_data", schedule = True

End Sub

It looks like i will have to run this macro everytime when i open the
spreadsheet in order to make it work. is that true? Is there anyway
to get around this? I am not the only user to use the spreadsheet, I
am just worried that other user may forget to run this when they open
the spreadsheet.

Again, thanks for the help

regards,
chuck


--
chucklee
------------------------------------------------------------------------
chucklee's Profile: http://www.excelforum.com/member.php...o&userid=29071
View this thread: http://www.excelforum.com/showthread...hreadid=487968

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default To run marco at a specific time in the day

Hi Chucklee,

You could set the OnTime parameters in the Workbook_Open event or use the
Auto_Open macro.

See also Chip Pearson's notes on using Windows timers in the previously
suggested link.

---
Regards,
Norman



"chucklee" wrote in
message ...

thanks for your help.

now, I have the following codes written:


Sub Archive()

Application.OnTime TimeValue("12:02:00"), "Grab_data", schedule = True

End Sub

It looks like i will have to run this macro everytime when i open the
spreadsheet in order to make it work. is that true? Is there anyway
to get around this? I am not the only user to use the spreadsheet, I
am just worried that other user may forget to run this when they open
the spreadsheet.

Again, thanks for the help

regards,
chuck


--
chucklee
------------------------------------------------------------------------
chucklee's Profile:
http://www.excelforum.com/member.php...o&userid=29071
View this thread: http://www.excelforum.com/showthread...hreadid=487968



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
IF statement to calculate time usage in specific time bands Daren Excel Worksheet Functions 6 January 31st 07 01:34 PM
Determining a specific time during the day Susan Hayes Excel Worksheet Functions 2 September 9th 05 01:28 AM
time specific macros dobson,james Excel Programming 2 August 4th 05 11:57 AM
Run Specific Marco Budiono[_2_] Excel Programming 1 January 29th 04 04:16 AM
time specific data Ron Albert Excel Programming 1 January 18th 04 11:55 AM


All times are GMT +1. The time now is 10:47 AM.

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

About Us

"It's about Microsoft Excel"