Hi Rdrnofear,
I'm not sure if we're stumbling over a language barrier, here... But I
really don't understand anything you've tried to report back in either
of your last two messages.
You do know how to insert field codes { brackets } using Ctrl+F9,
right?
And you've saved the document containing the variable text to a folder,
and you're using that folder's path in IncludeText, according to the
pattern below (double-backslashes)?
And you're using the merge field that contains the "A1", "B1" codes you
described in your original message?
And, in the document containing the variable text, you've selected each
set of text and assigned a bookmark name that matches the code for
that text?
Plus, at the very end of the document, you've inserted a bookmark named
"Empty" in an empty paragraph, with no text selected?
Note: another approach, if you can put "Empty" (or something else) into
the data source where there is no "code", would be a simple IncludeText
statement that simply specifies the bookmark. No IF would be required:
{ IncludeText "C:\\Test folder\\docvars.doc" { Mergefield Code } }
pretty much tried:
{ IncludeText "C:\\Test\\Variables.doc" { IF { Mergefield Code } =
"A1" "A1" "Empty" } }{ IncludeText "C:\\Test\\Variables.doc" { IF {
Mergefield Code } = "B1" "B1" "Empty" } }
exact.....both sets of bookmarked data in output(2 paragraphs not one
for unique selection???
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail
