Templates and Macros

G

Guest

I am merging data from an outside source into a word document. This .doc
contains a marco (basically renaming it) AutoOpen. Seems lately some users
change the .doc without even knowing it which distroys all of my merge
fields. I was thinking if I used a template (.dot) instead of the .doc that
way no one will be able to alter it.
My problem is, I can't seem to make the macro work within the .dot
(template) which I was hoping would rename the "new document" to
"whatever.doc" which is created everytime the template is opened. I just
keep getting the template opens and the new document is called document1.doc.
 
G

Graham Mayor

You are creating a new document from the template so the macro should be
called autonew if you want it to run at that time - whether it will then do
what you want depends on your coding.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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