Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Automating excel with outlook

Hi,

I am tryiing to setup an automated command within excel for every 1/2 hr to
send a column in excel with data to large group of people through outlook.

I am using this code but it is not working out:


Sub AutoRefresh()

ActiveWorkbook.RefreshAll
Application.OnTime Now + TimeValue("00:01:00"), "SendEmail"
Application.OnTime Now + TimeValue("00:30:00"), "AutoRefresh"

End Sub

It works only the 1st time when the workbook is open after that for every
1/2 hr it loses 1 min so the next time instead of starting @ 30 min interval,
it starts @ 29 min and so on. In the end the schedule email gets delivered
earlier and earlier instead of the precise 30 min interval that I am looking
for.

How can I get it done???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Automating excel with outlook

I may be wrong, but I don't think you need Outlook to do what you want to do.
Take a look at this:

http://www.cpearson.com/excel/OnTime.aspx


Regards,
Ryan--


--
RyGuy


"sjj11" wrote:

Hi,

I am tryiing to setup an automated command within excel for every 1/2 hr to
send a column in excel with data to large group of people through outlook.

I am using this code but it is not working out:


Sub AutoRefresh()

ActiveWorkbook.RefreshAll
Application.OnTime Now + TimeValue("00:01:00"), "SendEmail"
Application.OnTime Now + TimeValue("00:30:00"), "AutoRefresh"

End Sub

It works only the 1st time when the workbook is open after that for every
1/2 hr it loses 1 min so the next time instead of starting @ 30 min interval,
it starts @ 29 min and so on. In the end the schedule email gets delivered
earlier and earlier instead of the precise 30 min interval that I am looking
for.

How can I get it done???

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
excel open in outlook if outlook is running kirk Excel Discussion (Misc queries) 0 May 24th 06 06:42 PM
Automating Excel mvpejp Excel Discussion (Misc queries) 0 November 22nd 05 07:33 PM
Automating Excel w VB.Net 2003 [email protected] Excel Discussion (Misc queries) 0 September 23rd 05 05:37 AM
Excel 97 - automating getting info from web [email protected] Excel Discussion (Misc queries) 0 August 22nd 05 01:43 PM
AUTOMATING JOB SHEETS IN EXCEL bobby smith New Users to Excel 2 June 17th 05 05:50 PM


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