Peter
Wed Nov 05 21:14:49 CST 2003
Hi Jonathan,
I managed to copy the macro's from the template to the
instantiated document, but how can I copy the code that
belonging to "ThisDocument" ?
Peter
>-----Original Message-----
>Hi Peter,
>
>"Peter Ryckaert" <anonymous@discussions.microsoft.com>
wrote in message
>news:0b4901c3a37f$c9833860$a301280a@phx.gbl...
>> I have a template from which users can create a
>> document. When they then send the document to someone
>> else (that does not have the template), the macro's
have
>> disappeared.
>
>That is normal behaviour for Word.
>
>>
>> Is there a possibility to copy the macro's and modules
>> from the template to the document, each time a new
>> document is created from the template ?
>
>You can write a VBA macro that uses the OrganizerCopy
method to copy the
>relevant module(s) to the document.
>
>Beware that the macros even then might not run on the
target machine,
>depending on what security settings the user has.
>
>--
>Regards
>Jonathan West - Word MVP
>
http://www.multilinker.com
>Please reply to the newsgroup
>
>.
>