Templates and Macros

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top