If Word is Editor... do...

F

Flemming Dahl

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
 
K

Ken Slovak - [MVP - Outlook]

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

Flemming Dahl

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
 
K

Ken Slovak - [MVP - Outlook]

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

Flemming Dahl

Thanks for the info - bugger



Ken Slovak - said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top