macro help please!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to have two macros for Outlook 2003. If you can help, I would
appreciate it.

1. Need macro that I can click on toolbar to give boilerplate message as
reply to an incoming email. Only want the boilerplate message to appear in
email, not the incoming text. I would envision this as creating a new
message to the reply to address and inserting a stock message. Purpose: to
acknowledge mail order from customer.

2. Need macro to insert a particular signature upon clicking on toolbar
item. I have so many signatures with boilerplate messages that I need a
simple way to insert default signature. When I do a keystroke sequence to
insert signature, the default signature usually is not first on the list; so
I can't simply do an alt-i, s, something to insert the default sig.

If you can, please reply directly to (e-mail address removed).

Thanks, and God bless you.
 
Thanks for the reply. I know how to use a default signature, but I don't
want to use the signature all the time, just on command. I send a lot of
stuff inter-office, and I don't want signatures on all of those.

message 1. Reply with boilerplate text

Sub CustomReply()
Dim objMsg As Object, objMailItem As Outlook.MailItem, objReply As
Outlook.MailItem

Set objMsg = Application.ActiveExplorer.Selection.Item(1)
If objMsg Is Nothing Then Exit Sub
If objMsg.Class <> olMail Then Exit Sub

Set objMailItem = objMsg
Set objReply = objMailItem.Reply
objReply.Body = "My boilerplate text" ' & vbCrLf & objReply.Body
objReply.Display
End Sub

2. You don't really need to code this. You can set a default signature for
new messages or replies and forwards (see the Signature section in the Mail
Format tab of the Options screen). In Outlook 2003, you can even configure
different signatures for these actions for each mail account.
 
Back
Top