I am confused!!
My comments are included in yours!
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.
*The problem is that case (in the case of a Word Editor in Outlook) the
outlook add-in is not loaded? (that was my first question in this thread and
you said that both addins are completely independents)
* When you say email item do you see it as _MailItem object?
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.
What I do in Outlook : When I click on a button X and an email item is
selected, then some code runs. The final result of this is a ".msg file" that
have all the information concerning the email (Subject, To, CC,
Attachement....)
I want to do the same when I have a word editor (envelope is visible) ???
Thank you for ur help