View Single Post
  #2  
Old July 26th 06, 02:26 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook Form Command Button Code

At its simplest:

Sub CommandButton1_Click()
Set reply = Item.Reply
reply.Body = "One word at the beginning" & vbCrLf & vbCrLf & reply.body
End Sub

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tipcie" wrote in message ...
I'm wondering if it's possible and if anyone can point my in the right
direction as to where I can pull some code to modify. I have an outlook form
which I need a vote or command button (2 in total depending on whats used)
which will include the original message in the response. If you use vote the
original message is not included so I'm wondering if there's a script for a
command button that would basically act as the reply button but add one word
at the beginning of the e-mail.

Ads