Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automate text in e-mail 1

Status
Not open for further replies.

OCM

MIS
Sep 12, 2002
220
US
Greetings,

Using Outlook 2010 I created a template that goes out to certain recipients every day. I’m trying to automate this process (subject line & body) my requirement is as follows:

1. e-mail goes out Tuesday - Friday will have
Subject: report for: <today’s date> in “mm/dd/yy” format

Body of e-mail
I ran for: <yesterday’s date> “mm/dd/yy”
then I ran for: <today’s date> “mm/dd/yy”

2. e-mail goes out on Monday will have
Subject: report for: <today’s date> in “mm/dd/yy” format

Body of e-mail
I ran for: <Friday’s date> “mm/dd/yy”
then I ran for: <Saturday’s date> “mm/dd/yy”

TIA,
Regards


OCM
 
Show us your code that you already have.
it will be some simple modifications to your code.

Have fun.

---- Andy
 
Andy, actually, I don’t have any code for this. That’s why I posted on this forum to see the best way to accomplish the above.
What I’ve done is just created outlook template w/ recipients e-mail and text that goes on the body of the e-mail. Every day, I’ll open this template so I do not have to type the text again (I just change the dates I mentioned in my original post). So, my question was, is there a way, when I open my template, the dates are updated automatically?


OCM
 
I am sure there is a way.
What I would do is - start a Macro recorder in Outlook and do by-hand some steps, like type the Subject line and some text in the Body of the message. Then in VBA editor see the code of the macro. This way you will know what you need to do to change the Subject and body to what you need.

Have fun.

---- Andy
 
Andy, thank you for your replies and the useful link you provided.

Regards,



OCM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top