Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Templates and Macros
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. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Templates and Macros
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 Word MVP web site http://word.mvps.org david wrote: 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Templates and Macros | Microsoft Word Help | |||
Shared templates with macros | Microsoft Word Help | |||
Saving Templates and Macros | Microsoft Word Help | |||
Macros in templates | Microsoft Word Help | |||
macros in templates in Word 2003 | Microsoft Word Help |