Attach template/macro after merge

Z

Zoe

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
 
H

Harold

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top