Hi all,

I am trying to automate a mail merge process, which has worked okay so
far, but I am finding that when the merge to new document is complete,
I lose the other macros that were in the original template.

I am not allowed to mess with Normal.dot so I can't make my macros
part of that template, which is what the new form letters are based
on.

Is there a way of bringing the macros from the main document template
over to the new merged form letters?

Thanks for any help you can offer.

Zoe

Re: Attach template/macro after merge by Harold

Harold
Fri Oct 15 08:04:45 CDT 2004

Yes you can attach a template programmatically
use this ActiveDocument.AttachedTemplate ="full path and name of template"

You can also move modules from one project to another using the Organizer.
Application.OrganizerCopy "path and template name",ActiveDocument,
"Module1", wdOrganizerObjectProjectItems

--
Harold Kless, MCSD
Support Professional
Microsoft Technical Support for Business Applications
haroldk@microsoft.com

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Zoe" <harris.zoe@agd.sa.gov.au> wrote in message
news:979ab689.0410141907.7e90ab27@posting.google.com...
> Hi all,
>
> I am trying to automate a mail merge process, which has worked okay so
> far, but I am finding that when the merge to new document is complete,
> I lose the other macros that were in the original template.
>
> I am not allowed to mess with Normal.dot so I can't make my macros
> part of that template, which is what the new form letters are based
> on.
>
> Is there a way of bringing the macros from the main document template
> over to the new merged form letters?
>
> Thanks for any help you can offer.
>
> Zoe