Hi there. I have a Word .dot template file that I use to generated
pre-formatted documents. The template contains some macro code that prompts
the user for some data then generates a new doc. Anyway the
project/module/code that is contained in the template is also being saved in
the final document; and I don't want that macro code in my final document.
So I wanted to change the macro code in my template to modify the generated
document in some way so when it is saved (by the end-user) the macro code
that was contained in the template should NOT be saved with the newly created
doc file. Any ideas would be appreciated, thanks.
Andy Faust was telling us:
Andy Faust nous racontait que :
> Hi there. I have a Word .dot template file that I use to generated
> pre-formatted documents. The template contains some macro code that
[quoted text clipped - 6 lines]
> should NOT be saved with the newly created doc file. Any ideas would
> be appreciated, thanks.
Unless you wrote some fairly complicated code to achieve that particular
end, the doc generated from a macro-filled-dot will not actually contain the
macros. As long as the doc is attached to the dot, the macros will be
available, but will not be part of the doc. In fact, if you detach the doc
from the dot, or just send the doc to someone who does not have the dot, the
doc will be macro free.
So you really do not have anything special to do here...

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Andy Faust - 03 Dec 2004 15:15 GMT
Thanks Jean-Guy.
> Andy Faust was telling us:
> Andy Faust nous racontait que :
[quoted text clipped - 17 lines]
> doc will be macro free.
> So you really do not have anything special to do here...