One issue may be that your inbox may contain other items apart from MailItem and ReportItem (and that may be why you started to get error recently in a code that was working fine before). Run the code, and find out on which item the error occurs. That may give you a clue as to what other item it is.
You may also want to check the class property of the item to ensure it is one of MailItem or ReportItem




Reply With Quote
Bookmarks