• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA Code To Detect Outlook Voting response

debxxx1

New Member
Hi Guys,

I am trying to set an action in my outlook code that will automatically detect the voting response (Yes,No) and ignore them.

Please Help
 
Not really what you asked for, but why not use outlook rules to move these emails? If you start an email "where to go for lunch" add that as a rule to move these to a folder. You can even always insert [vote] into a subject line, and move these out without ever looking into the rules again.

This option is in outlook, on ribbon go to file, info, rules & alerts.
 
I solved it by my own. I needed a code not any newbie's outlook advise btw

If TypeName(item) <> "MailItem" Then
Cancel = False
Exit Sub
ElseIf Left(item.Subject, 3) = "Yes" Then
Cancel = False
Exit Sub
ElseIf Left(item.Subject, 2) = "No" Then
Cancel = False
Exit Sub
End If
 
That is indeed a very useful code, if you are OK with only Yes and No voting buttons, and with every email beginning with 'No' to be thrown out, ones titled, for example "NOTE ON THE VERY URGENT MEETING YOU NEED TO ATTEND THIS MORNING"

That is a very professional code you've built all by yourself.
 
Back
Top