In the Word.WindowActivate event you can check for Window.EnvelopeVisible. If true it's a WordMail window, if false a Word document window. That tells you if you need to enable or disable the UI in that window.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
"Dawn" <Dawn[ at ]discussions.microsoft.com> wrote in message news:E585C081-E599-49C4-99EA-D365A5420AF8[ at ]microsoft.com...
[Quoted Text] >I have developed two add-ins for MS word 2003 and MS outlook 2003 using vb >6.0. > the add-ins adds menus under the file menu in word and outlook > respectively. > > the problem which i am facing is that whenever i am setting the word as > as > editor for outlook, the menu's displayed while creating/editing e-mail > message under file menu are of add-ins corresponding to word integration > add-ins and not of outlook integration add-ins
|