Hack 48 Attach the Same Template to Multiple Files![]() ![]() for all the files in a folder.When documents are passed around among reviewers or contributors, you'll often want to reattach the correct template when you get the files back. Doing that for more than a few files can be a real chore, though. This hack shows how to attach the template used by the current document to all the documents in the same folder as the current document. 5.5.1 The CodePlace this macro in the template of your choice [Hack #50] and either run it from the Tools dialog or put a button for it on a menu or toolbar [Hack #1] : Sub DocTemplateToAllFilesInFolder( )This macro is just a modified version of the code demonstrated in [Hack #59] . 5.5.2 Hacking the HackAnother common scenario is needing to attach the same template to several open files, which may not be in the same folder. The following macro attaches the template used by the current document to all the other open documents.Place this macro in the template of your choice [Hack #50] and either run it from the Tools dialog or put a button for it on a menu or toolbar [Hack #1] : Sub ThisTemplateToAllOpenDocs( ) |