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

Outlook Form Command Button Code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 26th 06, 02:16 PM posted to microsoft.public.outlook.program_vba
Tipcie
external usenet poster
 
Posts: 1
Default Outlook Form Command Button Code

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.
  #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.

 




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
Setting A Command Bar Button Picture - Catastrophic Failure Error pswfps Outlook and VBA 1 July 14th 06 02:45 PM
Setting A Command Bar Button Picture - Catastrophic Failure Error Whatever Add-ins for Outlook 1 July 14th 06 02:42 PM
Delete Excel Command Button Before Email is Sent White Horse Outlook and VBA 1 April 28th 06 06:01 AM
Command bar button FaceID Icon donald Add-ins for Outlook 20 February 9th 06 06:42 PM
Command button not working on read page jbtempe Outlook - Using Forms 2 January 13th 06 11:25 PM


All times are GMT +1. The time now is 10:42 AM.


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.