Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Outlook Voting button

To whom it may concern,

How do I include "Voting Buttons" in an Outlook email message using a macro
from Excel 2003? I have tried adding them as objects within the email
portion of the macro code, but have not been successful. Any help would be
greatly appreciated.


TIA
Andrew Sbrana
Senior Business Analyst


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Outlook Voting button


I've found the answer to my question. Voting buttons are created in an
email by using .votingoptions as MailItem object.

Sub Create_Email()

Dim oOutlook As Object
Dim oMailItem As Object
Dim oRecipient As Object
Dim oNameSpace As Object

' Create the email

Set oOutlook = CreateObject("Outlook.Application")
Set oNameSpace = oOutlook.GetNameSpace("MAPI")
oNameSpace.Logon , , True

Set oMailItem = oOutlook.CreateItem(0)
With oMailItem
Set oRecipient = .Recipients.Add(FCell)
oRecipient.Type = 1 '1 = To, 2 = CC
.Subject = "This is to test Voting Buttons"
.body = "This is an email macro test"
.Categories = "Macro Testing"
.votingoptions = "Yes;No;Put text here"
.display
.send
End With

End Sub

"Andrew" wrote in message
...
To whom it may concern,

How do I include "Voting Buttons" in an Outlook email message using a
macro from Excel 2003? I have tried adding them as objects within the
email portion of the macro code, but have not been successful. Any help
would be greatly appreciated.


TIA
Andrew Sbrana
Senior Business Analyst



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling voting button kd Excel Discussion (Misc queries) 0 April 24th 08 09:36 AM
Voting function Leila Excel Discussion (Misc queries) 0 November 21st 06 10:14 PM
Voting Response junoon Excel Programming 0 May 19th 06 01:47 AM
Voting results in Excel Arnaki Excel Discussion (Misc queries) 0 May 3rd 06 06:34 AM
Is there any way to use a voting button in excel? mmonk Excel Programming 0 October 4th 05 02:25 PM


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"