View Single Post
 
Old 02-23-2014, 07:00 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Personally, I'd have the INCLUDETEXT fields in the document already, and use a DOCPROPERTY field to return a value from a custom document property to determine the output. If the source documents have two bookmarked ranges - one containing the TRUE content and the other containing the FALSE content - all that is needed is to toggle the bookmark reference. For example:
{INCLUDETEXT "C:\\Users\\Genius\\Desktop\\Text1.docx" "{DOCPROPERTY BkMk}"}

Alternatively, if you want two separate documents, use the DOCPROPERTY field to toggle the 1/2 in the document names. For example:
{INCLUDETEXT "C:\\Users\\Genius\\Desktop\\Text{DOCPROPERTY DocID}.docx"}

Either way, you don't need to rely on updating bookmarked ranges in your form document.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote