Code available to new doc/dot?

Z

zSplash

After my mail merge, can I (instead of opening a new word document), open a
template (that has nothing but code in it?) so that all users will have
access to the code contained in this template, instead of having to know
their template paths or using an addin?

Or, if that's not possible, can I attach a certain template (with code) to
the newly-created word document somehow?

TIA
 
C

Charles Kenyon

Opening a template (having it on your screen so that you can type in it)
does not give any other document access to the code in that template.

For whatever reason, it seems that mailmerge result document does not have
access to code in the attached template. This is true even if you attach the
template using the templates and Add-Ins dialog..

However, all documents, including a mailmerge result document, have access
to code contained in an Add-In that has been loaded. So, you can load a
template as an Add-In and give your document access to the code in the
template that way; simply opening it won't help.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Z

zSplash

Thanks, Charles. I guess I miswrote. I meant to ask if after I set up the
main document, is there any way to merge to a specific template, rather than
to a blank word document?

st.
 
C

Charles Kenyon

Sorry, must be a Friday. My brain isn't working. I still don't understand.
When you merge you are merging to a new document based on the template of
your main merge document, not to the blank word document template. After a
merge, if you look to find the attached template, it will be the template of
your main merge document.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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