![]() |
|
#13
|
||||
|
||||
|
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.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Field Code: Show a value only if bookmark is not empty
|
Cosmo | Word | 7 | 08-24-2018 01:46 PM |
VBA Code to Access Building Block Template in Word 2013 Startup folder
|
rdross51 | Word VBA | 2 | 06-01-2016 07:05 PM |
| Find Bookmark, move to bookmark, execute code, repeat | raymm3852 | Word VBA | 10 | 04-15-2016 06:21 PM |
VBA Code in template does not run in new document
|
highrise955 | Word VBA | 4 | 03-06-2016 04:48 PM |
Visual basic code for Word 2003 template
|
KateAus | Word VBA | 4 | 09-09-2012 08:40 PM |