Link to home
Start Free TrialLog in
Avatar of pnwyatt
pnwyatt

asked on

What are the Outlook Item Properties for Mail Items when Word is the email Editor

I have a COM Addin that is triggered by the MailItem_Send and OutlookItem_Send events. I am testing it using Outlook 2000. It works great except when Word is selected as the email editor. When Word is used, the MailItem_Send event are not triggered. Even though the Item.Class = 43 (olMail) the Item cannot be assigned to and Outlook.MailItem object. An error occurs if this assignment is made.

Sample:
Private WithEvent objMailItem As Outlook.MailItem
If Item.Class = olMail Then
    objMailItem = Item
End If
Creates a error is the Item was created using Word as the email editor.

Does anyone know how to detect this and what type of object to use for the item in this case? What object property could be used to detect this since Class is the same for Word and Plain Text emails?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of shivsa
shivsa
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also refer to this book.
http://www.slipstick.com/