PC Review


Reply
Thread Tools Rate Thread

approve email macro

 
 
BBB
Guest
Posts: n/a
 
      18th Nov 2008
hi,

i have set a form up in excel and created a command button to email the
completed form back. there is an option for a new email message in outlook
to have a voting component, such as approve or reject. how do i add this
command to the below macro?


Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
..To = ""
..CC = ""
..BCC = ""
..Subject = "Order"
..Body = ""
..Attachments.Add ActiveWorkbook.FullName
..display
End With
Set OutMail = Nothing
Set OutApp = Nothing

End Sub

 
Reply With Quote
 
 
 
 
Alan Moseley
Guest
Posts: n/a
 
      18th Nov 2008
Just before your '.Display' line insert the following:-

.VotingOptions = "Approve;Reject"

Should do the trick.

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"BBB" wrote:

> hi,
>
> i have set a form up in excel and created a command button to email the
> completed form back. there is an option for a new email message in outlook
> to have a voting component, such as approve or reject. how do i add this
> command to the below macro?
>
>
> Private Sub CommandButton1_Click()
>
> Dim OutApp As Object
> Dim OutMail As Object
> Set OutApp = CreateObject("Outlook.Application")
> Set OutMail = OutApp.CreateItem(0)
> With OutMail
> .To = ""
> .CC = ""
> .BCC = ""
> .Subject = "Order"
> .Body = ""
> .Attachments.Add ActiveWorkbook.FullName
> .display
> End With
> Set OutMail = Nothing
> Set OutApp = Nothing
>
> End Sub
>

 
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
How to have approve/reject/tentative buttons on the top of Email. Criterium Microsoft Outlook Calendar 2 9th Oct 2009 08:37 PM
MACRO to Approve or Decline Neil Holden Microsoft Excel Programming 2 8th Sep 2009 05:06 PM
Sending Outlook Email with Actions (Approve/Disapprove) Boxes JM Microsoft Access Form Coding 1 30th Mar 2006 01:34 AM
how to digitally approve an email and forward to other users =?Utf-8?B?TSBNIEM=?= Microsoft Outlook Discussion 1 30th Jan 2006 07:22 AM
Have to approve each email when sending from Word =?Utf-8?B?VGhvZmZyaWdodA==?= Microsoft Outlook Discussion 1 28th Apr 2005 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:42 PM.