#1
|
|||
|
|||
Can you use XML parts and Content Controls to update document A and B?
Hello all,
I've been playing around with XML parts and Content Controls which has saved me lots of work in a single document. Now I want to branch out and update multiple documents at the same time in a folder structure. Hopefully this diagram explains what I mean. Code:
Main Folder - Folder 1 -- Document A -- Document B -- Document C -- Folder 1A ---Document D - Folder 2 -- Document A -- Document B -- Folder 2A --- Document C --- Folder 2A1 ---- Document D
Is this something that can be accomplished? |
#2
|
|||
|
|||
The XML parts are document-specific, not shared with other documents.
Something could be set up using macros. Note though that mapped content controls are reciprocal within the document. Updating any one updates all copies. This would be very difficult for multiple documents. For a non-vba solution, look at using, instead, Mail Merge, with a primary data set. Last edited by Charles Kenyon; 04-02-2023 at 08:39 AM. |
#3
|
||||
|
||||
Yes, it can be done via VBA if you have populated the XML file and it has a unique namespace. Your source document could be outside of Word but could also be any of the docs which contain a complete complement of the XML fields mapped to Content Controls which might appear across the suite of related documents.
The complexity would be determining which other Word docs need to be updated - this could be determined by either a list stored somewhere or by some 'rules' about what folders are related to the source document.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
When I want common elements in multiple documents, I use Mail Merge.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use content controls to populate text throughout the same document? | WordUnknown | Word | 6 | 11-01-2022 11:08 AM |
Loop and Update Content Controls with value | vss712 | Word VBA | 7 | 08-27-2015 08:56 PM |
More than one content controls in a word document | lucky16 | Word VBA | 6 | 07-10-2014 08:34 AM |
How to protect all parts of a document not in a content control? | XmisterIS | Word | 2 | 05-20-2014 04:59 AM |
Using both rich and plain content controls in one document | Erica.Black | Word | 0 | 06-18-2013 10:33 AM |