View Single Post
 
Old 12-20-2018, 04:39 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can use VBA code to embed the XML file into any Word document. That would require you to populate the customer-specific values in the xml before embedding that file into each document. This is not particularly user friendly and doesn't make for an elegant workflow.

I would approach this differently to give you a better workflow. If your template contains a series of building blocks containing each of your document 'templates' then you can populate any one of the documents and then do a SaveAs before replacing the contents of the entire file with a different building block. See the attached template as a working example of this where I have saved three variant documents as building blocks. You can populate any of these variants and change variant to see the same info in different layouts. This template doesn't need any coding at all and could have been saved as a dotx and work exactly the same.
Attached Files
File Type: dotm Sample Linked XML Template.dotm (114.5 KB, 17 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote