I'm using the final block of code from this thread and having an issue: http://www.excelforum.com/outlook-pr...html?p=2919350
Please Login or Register  to view this content.
I'm having issues running this with "MyMail As MailItem" between the brackets: Sub Download_contracts(MyMail As MailItem)

I'm unable to step through the macro or see it in the "Alt F8" window. If I remove it from the brackets and declare the variable separately I get an error here after stepping through it: strID = MyMail.EntryID

"Object variable or With block variable not set".

Am I missing something? I do have my outlook references setup. I appreciate any guidance to point me in the right direction.