Solved

extract voting information from Outlook 2007

Posted on 2009-06-29
3
360 Views
Last Modified: 2012-05-07
Hi,

When you send an email with voting options at the top of the email responses you get back there is a can section containing the senders response. Right click on this and you can view voting responses, which is a detailed list of how people responded to the email.

I am trying to get this voting information out of some emails and put it into some other format, e.g. XML or a text file.

Can anyone explain to me how to do this ? Preferably with a VB Script or VBA Macro

Regards

Ertnev74
0
Comment
Question by:ertnev74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 24735978
Hi, ertnev74.

Here is some sample code that extracts the voting information from the sent item.  This sample displays the response int eh immediate pane of the code editor.  You can change it to output the information in XML, CSV, etc.
Sub VotingResponses()
    Dim olkMsg As Outlook.MailItem, olkRecipient As Outlook.Recipient
    Set olkMsg = Application.ActiveExplorer.Selection(1)
    For Each olkRecipient In olkMsg.Recipients
        Debug.Print olkRecipient.AutoResponse
    Next
    Set olkRecipient = Nothing
    Set olkMsg = Nothing
End Sub

Open in new window

0
 

Author Comment

by:ertnev74
ID: 24761372
Hi BlueDevilFan,

I have tried this but I only seem to be able to extract the first set of response info from the email, even though the report contains multiple entries.

Any suggestions ? I think it might have something to do with it check the recipients ? Is it possible to code a lone similar to this one ??

    For each voteresponds in objectmsg.voteresponses ????

Regards

Ertnev74
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24761481
"I only seem to be able to extract the first set of response info from the email"
I don't understand what you mean by "first set of response info".  Do you mean that it only returns one person's vote and not the vote from all recipients?

"For each voteresponds in objectmsg.voteresponses ????"
That's exactly what the code I posted does.  Each recipient has one vote and that vote is stored in the "AutoResponse" property.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Mailbox Overload?
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question