Reenabling template macros

J

J

I have the following problem with an addin i've designed with one VB
Dll and two template files. My dll builds the main commandbar in the
OnConnection routine, and the first template file checks the current
selection to see if another toolbar is going to be needed to be built
alongside the main one (a context sensitive toolbar). If so, it loads
a second template file that overrides a lot of commands/builds
toolbars/calls into the dll.

The only time this is all failing is when the first instance of word
that is opened (that calls the OnConnection) is within an OLE
container. I don't care if the templates work in this contained
document (toolbars aren't even enabled so it doesn't matter).
However, any subsequent document that is opened alongside this OLE
container do not work correctly.

These are my assumptions:

1) No other Word instances open
2) Open a Word (2000/xp/2003) document within Internet Explorer or
Open Outlook and create new email message (uses Word in backend)
3) Templates (macros) are disabled in this protected ? state of
operation
4) Navigate to another .doc on your hd. Double-click to open it.
5) Templates are still disabled and therefore my addin is not able to
do anything (ie. load the other template)

My main question:

Is there a way to re-enable the ability to run templates and macros if
the inital instance of Word is opened within a container, AND you are
in some other document that has been opened along side this initial
instance? I dont care about being able to do this within the
container, I just want them to be able to run Outlook along side of my
prog without mysteriously dissappearing toolbars.

Thanks in advance for anyone's help.

-Seth
 

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