J
junk
Working with Word 2003.
I have two document templates that I want to work together.
Content.DOT has just template document formatting and content - no
code at all.
Code.DOT has the code necessary to drive toolbar buttons that are
designed to manipulate the content in Content.DOT. Code.DOT has an
AutoExec() function which creates the toolbar when it loads.
I want Content.DOT to Reference the Code.DOT file. So, in Content.DOT
I open VBA and use Tools / References to add a reference to Code.DOT.
The idea is that when a document is created with Content.DOT, Code.DOT
will be loaded (after the macro security warning) and the AutoExec
will run to create the toolbar.
However, Word won't remember the Reference setting unless I add macro
code to Content.DOT, which I don't want to do.
Can I get Word to remember a library reference without adding cacro
code to my document?
Is there a better way to do this?
My goals are:
* No user install procedures - the user just opens the Content.DOT
file in a common network drive.
* No code in the Content.DOT file (so that I won't be a copy of the
code in every document created by the end-user).
I tried adding just a couple lines of code in Content.DOT, but then I
get two separate macro security warnings - One for Content.DOT and one
code Code.DOT. That may seem trivial, but if the user gets too
annoyed with the warnings, they'll just turn them off, which we don't
want.
Any ideas?
Thanks!
Lee
I have two document templates that I want to work together.
Content.DOT has just template document formatting and content - no
code at all.
Code.DOT has the code necessary to drive toolbar buttons that are
designed to manipulate the content in Content.DOT. Code.DOT has an
AutoExec() function which creates the toolbar when it loads.
I want Content.DOT to Reference the Code.DOT file. So, in Content.DOT
I open VBA and use Tools / References to add a reference to Code.DOT.
The idea is that when a document is created with Content.DOT, Code.DOT
will be loaded (after the macro security warning) and the AutoExec
will run to create the toolbar.
However, Word won't remember the Reference setting unless I add macro
code to Content.DOT, which I don't want to do.
Can I get Word to remember a library reference without adding cacro
code to my document?
Is there a better way to do this?
My goals are:
* No user install procedures - the user just opens the Content.DOT
file in a common network drive.
* No code in the Content.DOT file (so that I won't be a copy of the
code in every document created by the end-user).
I tried adding just a couple lines of code in Content.DOT, but then I
get two separate macro security warnings - One for Content.DOT and one
code Code.DOT. That may seem trivial, but if the user gets too
annoyed with the warnings, they'll just turn them off, which we don't
want.
Any ideas?
Thanks!
Lee