+ Reply to Thread
Results 1 to 2 of 2

Outlook Voting button

  1. #1
    Andrew
    Guest

    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. #2
    Andrew
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1