PC Review


Reply
Thread Tools Rate Thread

Automating excel though outlook

 
 
sjj11
Guest
Posts: n/a
 
      18th Jan 2008
Hi,

I am trying 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 With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      18th Jan 2008
See this page
http://www.cpearson.com/excel/OnTime.aspx

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"sjj11" <(E-Mail Removed)> wrote in message news:EDE94399-F520-4851-9F2A-(E-Mail Removed)...
> Hi,
>
> I am trying 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 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
Automating excel with outlook sjj11 Microsoft Excel Worksheet Functions 1 18th Jan 2008 02:44 PM
Automating Excel Visual Basic to Schedule Outlook Events Phil Microsoft Excel Programming 0 15th Jan 2007 11:45 PM
Repost - Automating Excel and Outlook from Access =?Utf-8?B?RGVyZWsgV2l0dG1hbg==?= Microsoft Access VBA Modules 11 11th Jan 2005 04:47 PM
Automating Excel and Outlook =?Utf-8?B?RGVyZWsgV2l0dG1hbg==?= Microsoft Access VBA Modules 0 2nd Nov 2004 07:10 PM
Automating outlook, excel, calendar, contacts Aniela Microsoft Outlook Discussion 4 11th Aug 2004 07:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 PM.