Can I make a add-in for outlook that adds a menuitems in the Word session
that is opened by Outlook when Word is e-mail editor?
I would appreciate very much, if I could get a little code example, if
possible.
I would also like a link to guide "How to make Outlook add-ins"
Thanks alot,
Flemming
You can get a Word.Application object using GetObject to see if Word is
already running when Outlook is started. I'd probably run the code in the
first Explorer.Activate event or even in the first NewInspector event of the
Inspectors collection. Explorers are your folder view, Inspectors are the
windows that display items.
You can add anything you want to Word at that point, although I'd probably
test for Window.EnvelopeVisible = True in addition to using GetObject. If
EnvelopeVisible = True the new window is displaying a WordMail item.
You can't get an autoexec macro or on startup macro to run if Word is being
opened as the Outlook editor for emails.
--
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
"Flemming Dahl" <do...@spam.me> wrote in message
news:OrfP6BXC...@TK2MSFTNGP09.phx.gbl...
> You can't get an autoexec macro or on startup macro to run if Word is
> being opened as the Outlook editor for emails.
I know... that's my issue... so I will try to handle the issue from Outlook
since my word addin dosen't work well.
Maybe the AD guys will have to setup a policy that ensures that users can
NOT use word as email editor, and ensure that users can't change the
setting... then the issue will be solved :-)
I don't like this 'build-in' """feature""" in MS Office
Thanks for your tip.
Flemming
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:O3NXjHjC...@TK2MSFTNGP11.phx.gbl...
--
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
"Flemming Dahl" <do...@spam.me> wrote in message
news:eG1XTEmC...@TK2MSFTNGP10.phx.gbl...
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:ulsnEDvC...@TK2MSFTNGP10.phx.gbl...