OnAction runs macro in container application.

M

Mark S.

I'm creating what will eventually be a COM Add-In...

It places a toolbar on an Inspector when opening
MailItems. When Word is the email editor, the toolbar
button click attempts to run the macro specified in the
OnAction property, but within Word which is
the "container" application (as documented).

1. Is there a way to specify that the OnAction macro
should run within Outlook?

2. As a last resort, I can include code in a .dot
template file, or another COM Add-In for Word, but the
toolbar would only be meaningful if one were composing
emails. Is there a method to determine if Word is being
invoked by Outlook as it's email editor?
 

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