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

I am sending a range in a spreadsheet at 5 minutes after
each hour during the day using a macro to send the data
through Outlook. Is there a way to automatically run this
macro at specific times througout the day?

Thank you,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Automatically Run Macro

Maybe the event Application.OnTime would be helpful.


-----Original Message-----
I am sending a range in a spreadsheet at 5 minutes after
each hour during the day using a macro to send the data
through Outlook. Is there a way to automatically run

this
macro at specific times througout the day?

Thank you,
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Automatically Run Macro

I am trying to use the Application.OnTime method now but
can't get it to work. I am using the following code to
launch the macro:

Application.OnTime
TimeValue "09:30:00"), "Mail_Selection_Outlook_Body"

-----Original Message-----
Maybe the event Application.OnTime would be helpful.


-----Original Message-----
I am sending a range in a spreadsheet at 5 minutes after
each hour during the day using a macro to send the data
through Outlook. Is there a way to automatically run

this
macro at specific times througout the day?

Thank you,
.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatically Run Macro

You could write the code to do the sending in the Workbook_Open even
and then schedule it to run using the Microsoft Scheduler (you woul
exit excel after the code runs). This would only be useful if you d
not need the workbook open at all times...



--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Automatically Run Macro

Thank You. I have gotten it started using a combination
of the OnTime method and the Call Statement.

-----Original Message-----
You could write the code to do the sending in the

Workbook_Open event
and then schedule it to run using the Microsoft Scheduler

(you would
exit excel after the code runs). This would only be

useful if you do
not need the workbook open at all times...

K


---
Message posted from http://www.ExcelForum.com/

.



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
How do you do the following using VBA macro automatically? LunaMoon Excel Discussion (Misc queries) 1 May 4th 10 08:37 PM
Automatically Run macro Anift Setting up and Configuration of Excel 2 November 25th 06 02:52 PM
Automatically run a macro SheriTingle Excel Discussion (Misc queries) 2 July 12th 05 04:41 PM
Run macro automatically. Excel macro New Users to Excel 7 April 19th 05 04:01 PM
Automatically run Macro tamato43 Excel Discussion (Misc queries) 0 March 30th 05 03:51 PM


All times are GMT +1. The time now is 12:07 PM.

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"