A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

send mail every days



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 14th 10, 08:24 PM posted to microsoft.public.outlook.program_vba
Christian W
external usenet poster
 
Posts: 6
Default send mail every days

Hello friends,

Have a question about outlook 2007. I need to run a macro every days, this
macro send a mail with information of a SQL. Have the macro created and run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.
Ads
  #2  
Old May 16th 10, 10:27 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default send mail every days



This might help you:
http://www.vboffice.net/sample.html?...0&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Fri, 14 May 2010 11:24:01 -0700 schrieb Christian W:

Hello friends,

Have a question about outlook 2007. I need to run a macro every days, this
macro send a mail with information of a SQL. Have the macro created and

run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.

  #3  
Old May 17th 10, 05:48 PM posted to microsoft.public.outlook.program_vba
Christian W
external usenet poster
 
Posts: 6
Default send mail every days

Michael,

Excelent!!!!!!!!!


Thanks a lots

"Michael Bauer [MVP - Outlook]" wrote:



This might help you:
http://www.vboffice.net/sample.html?...0&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Fri, 14 May 2010 11:24:01 -0700 schrieb Christian W:

Hello friends,

Have a question about outlook 2007. I need to run a macro every days, this
macro send a mail with information of a SQL. Have the macro created and

run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.

.

  #4  
Old May 17th 10, 07:40 PM posted to microsoft.public.outlook.program_vba
Christian W
external usenet poster
 
Posts: 6
Default send mail every days

Michael,

This code work, but have a problem, when remainder is executed a error
message is showed by outlook "Microsoft Outlook has encountered a problem and
needs to close, sorry for the inconveniences"

How i can to solve ?

Thanks in advance.
Christian W



"Michael Bauer [MVP - Outlook]" wrote:



This might help you:
http://www.vboffice.net/sample.html?...0&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Fri, 14 May 2010 11:24:01 -0700 schrieb Christian W:

Hello friends,

Have a question about outlook 2007. I need to run a macro every days, this
macro send a mail with information of a SQL. Have the macro created and

run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.

.

  #5  
Old May 17th 10, 08:25 PM posted to microsoft.public.outlook.program_vba
Christian W
external usenet poster
 
Posts: 6
Default send mail every days

Michael,

and now have a problem with outlook, your code works, but outlook cancel
with a message error "Microsoft Outlook has encountered a problem and needs
to close, sorry for the inconveniences caused"

any idea ?

Thansk in advance,
Christian

"Michael Bauer [MVP - Outlook]" wrote:



This might help you:
http://www.vboffice.net/sample.html?...0&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Fri, 14 May 2010 11:24:01 -0700 schrieb Christian W:

Hello friends,

Have a question about outlook 2007. I need to run a macro every days, this
macro send a mail with information of a SQL. Have the macro created and

run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.

.

  #6  
Old May 18th 10, 08:51 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default send mail every days



What happens if you walk through the code step by step? For that set a
breakpoint on the first line, and use f8 after the code execution has
stopped at that line.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Mon, 17 May 2010 11:25:01 -0700 schrieb Christian W:

Michael,

and now have a problem with outlook, your code works, but outlook cancel
with a message error "Microsoft Outlook has encountered a problem and

needs
to close, sorry for the inconveniences caused"

any idea ?

Thansk in advance,
Christian

"Michael Bauer [MVP - Outlook]" wrote:



This might help you:
http://www.vboffice.net/sample.html?...0&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Fri, 14 May 2010 11:24:01 -0700 schrieb Christian W:

Hello friends,

Have a question about outlook 2007. I need to run a macro every days,

this
macro send a mail with information of a SQL. Have the macro created and

run
succesfull but how i can to do for run every days automatically ?

is possible schedulle this macro ?

Thanks in advnace and sorry by my english,

Christian Wis.

.

  #7  
Old May 18th 10, 05:43 PM posted to microsoft.public.outlook.program_vba
Diplodok[_2_]
external usenet poster
 
Posts: 3
Default send mail every days

Hello Christian!
Try to use that as basic code
It have to be created in ThisOutlookSession

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim td As Date
Dim mi As MailItem
Set mi = Item.Copy
tdelay = DateAdd("d", 1, Now())
mi.DeferredDeliveryTime = tdelay
mi.Send
End Sub

That code create copy of your mail item to send and set its delivery
time in a day after.
You have to analyse some specific information in your message to
duplicate only items you need.
However, it clones copy of your item in Outbox

Reagrds, Andrey
  #8  
Old May 18th 10, 05:46 PM posted to microsoft.public.outlook.program_vba
Diplodok[_2_]
external usenet poster
 
Posts: 3
Default send mail every days

Forgot!
It tested on Outlook 2003, not 2007
But it used not specific VB model, I hope
Andrey
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
View filter on mail items sent in the last 30 days David Outlook and VBA 4 July 20th 11 09:54 PM
Can I send a meeting request for multiple days but not recurri outlawa Outlook - Calandaring 2 September 23rd 09 09:56 PM
Cannot send mail from OE6...3 days now Sue Outlook Express 10 April 16th 08 03:10 AM
7 days worth of mail Charles Shapiro Outlook - General Queries 8 January 14th 07 06:03 PM
Send out meeting request for odd days... Patrick Outlook - Calandaring 3 May 23rd 06 03:18 PM


All times are GMT +1. The time now is 08:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.