PC Review


Reply
Thread Tools Rate Thread

help with Outlook macro

 
 
CAN
Guest
Posts: n/a
 
      19th Jan 2012
Hello everyone, I am new to the group and just baby stepping my way
into Outlook macros. I need a simple solution.

I run 2003 Outlook and I need to creat a simple macro that will write
a reply to a message. I intend to use this macro to reply to certain
customers under certain conditions by clicking a icon assigned to the
macro.


This is a sample of something I like to say when I click on the macro
icon:


"Thank you for contacting this office, you request has been
processed
as per your instructions. Please update your records accordinly and
fee free to contact us again for any questions"


Once I learn the correct programming code, I intend to write other
similar replies


Thank you very much for all the help


Thank you
 
Reply With Quote
 
 
 
 
Michael Bednarek
Guest
Posts: n/a
 
      21st Jan 2012
On Thu, 19 Jan 2012 08:28:52 -0800 (PST), CAN wrote in microsoft.public.outlook.program_vba:

>Hello everyone, I am new to the group and just baby stepping my way
>into Outlook macros. I need a simple solution.
>
>I run 2003 Outlook and I need to creat a simple macro that will write
>a reply to a message. I intend to use this macro to reply to certain
>customers under certain conditions by clicking a icon assigned to the
>macro.
>
>
>This is a sample of something I like to say when I click on the macro
>icon:
>
>
>"Thank you for contacting this office, you request has been
>processed
>as per your instructions. Please update your records accordinly and
>fee free to contact us again for any questions"
>
>
>Once I learn the correct programming code, I intend to write other
>similar replies


This should get you started:

Sub ReplyType1()

Dim myReply As MailItem
Const myMessage As String = "Thank you for contacting this office, your request has been processed as per your instructions." _
& vbCr & "Please update your records accordingly and feel free to contact us again for any questions."

Set myReply = Application.ActiveInspector.CurrentItem.Reply
myReply.Body = myMessage
myReply.Display ' or myReply.Send

End Sub

Good luck.

--
Michael Bednarek "ONWARD"
 
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
macro will not run with file.xls!macro.macro BillRobPV Microsoft Excel Discussion 2 12th Sep 2008 05:08 PM
Macro within a macro and Macro Prompts =?Utf-8?B?Y29tcGFyaW5pMzAwMA==?= Microsoft Excel Misc 3 7th Jun 2006 01:28 PM
HELP NEEDED FAST!!! HELP HELP HELP HELP HELP HELP FAST HELP NEEDED Jonathan Windows XP General 10 13th Jan 2005 03:22 AM
Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! -$- Windows XP Internet Explorer 2 21st Dec 2003 11:45 PM
Start Macro / Stop Macro / Restart Macro Pete Microsoft Excel Programming 2 21st Nov 2003 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 AM.