Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

If Word is Editor... do...

0 views
Skip to first unread message

Flemming Dahl

unread,
Dec 25, 2005, 11:30:09 AM12/25/05
to
Hi all

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


Ken Slovak - [MVP - Outlook]

unread,
Dec 26, 2005, 10:34:31 AM12/26/05
to
See the ItemsCB sample COM addin template (VB 6) for an example of some best
practices for an Outlook COM addin (www.microeye.com, Resources page).

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...

Flemming Dahl

unread,
Dec 26, 2005, 4:12:27 PM12/26/05
to
Thanks Ken - I will take a look at it.

> 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]

unread,
Dec 27, 2005, 9:18:33 AM12/27/05
to
Don't plan on doing that if you want your code to work in the future.
Microsoft has announced that in Outlook 12 only WordMail is being used, no
Outlook editor. So get ready for that now.

--
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...

Flemming Dahl

unread,
Dec 27, 2005, 1:40:56 PM12/27/05
to
Thanks for the info - bugger

"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message

news:ulsnEDvC...@TK2MSFTNGP10.phx.gbl...

0 new messages