
See if a Outlook.Mailtem is a .msg-file or an item in a folder
I haven't tried it, but you might check the Parent property.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
Quote:
> >-----Original Message-----
> >I am building a COM Add-In in Outlook. This will execute
> >whenever an mailitem is opened, but I don't want it to
> >execute if the mailitem is a .msg-file.
> >My problem is that I don't know how to see if it is
> a .msg-
> >file or if it is an item opened by, for example, double-
> >click on it in Inbox.