#1   Report Post  
Posted to microsoft.public.word.docmanagement
David David is offline
external usenet poster
 
Posts: 167
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Templates and Macros John Microsoft Word Help 2 June 13th 06 08:52 PM
Shared templates with macros Lyli Microsoft Word Help 1 April 5th 06 09:30 PM
Saving Templates and Macros ALEX-BEL Microsoft Word Help 0 February 23rd 06 11:37 AM
Macros in templates Wendy Microsoft Word Help 2 April 20th 05 11:57 PM
macros in templates in Word 2003 Jim Bud Microsoft Word Help 2 January 13th 05 03:09 PM


All times are GMT +1. The time now is 12:52 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"