If Window.Envelope.Visible = true then it is an email item. There's very
little information you can get from that using the Word object model in a
Word addin. If it's an email item use Outlook code to deal with it in the
Outlook addin.
Whether or not you disable your Word addin and any UI it might create when
the item is a WordMail item is up to you. Do you want your addin running and
its UI showing in that case? If so then don't disable your Word addin and
its UI. If you don't want it there in a WordMail item then disable its UI. I
can't know what you want.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Hichem Sarrai" wrote in message
...
Hi Ken,
Should I then understand that every time an envelope is visible (In Word
or
in Outlook), then I can't treat it as an email? (For example I can't save
it
as an email)
To make myself understood, did you ask me also to disable my word add-in
every time I have an envelope visible?
Thank you for ur help.