View Single Post
 
Old 02-18-2013, 04:12 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Concertina,

Although the variable text can be held in multiple different documents, it can just as easily be held in a single document - with each variant differentiated by a bookmark.

For separate documents, you might code the INCLUDETEXT field like:
{INCLUDETEXT "C:\\Users\\My Document Path\\SourceDocument{MERGEFIELD DocID}.doc"}
where the source documents are named 'SourceDocument1', 'SourceDocument2, ... 'SourceDocument100' and the DocID field in your data source returns the number that corresponds with these documents.

For use with a single, bookmarked, document, you might code the INCLUDETEXT field like:
{INCLUDETEXT "C:\\Users\\My Document Path\\SourceDocument.doc" "BkMk{MERGEFIELD BkMkID}"}
where the bookmarks in the source document are named 'BkMk1', 'BkMk2, ... 'BkMk100' and the BkMkID field in your data source returns the number that corresponds with these bookmarks.

Using a single separate document has significant advantages over using separate documents, especially when it comes to maintenance.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote