D
DCA
Hello,
I am setting a word doc up to print out letters with mail merge. Depending
on the value of one of the mail merge fields bookmarked text gets inserted.
This is the code I've written:
{IF {MERGEFIELD "MAILCELL"} = "1H" "{INCLUDETEXT C:\CELL.DOC CELL_1G2G}" ""}
{IF {MERGEFIELD "MAILCELL"} = "2H" "{INCLUDETEXT C:\CELL.DOC CELL_5F}" ""}
and so on.
The code works well, but sometimes there will be two bookmarks generated.
For instace the text for 1H will be at the end of the text for 2H when the
value is 2H.
Any ideas? Could it be realted to the values starting with numbers (just a
thought seems to be some kind of correlation with bookmarks and values
causing problems when they start with numbers)?
Thank you.
I am setting a word doc up to print out letters with mail merge. Depending
on the value of one of the mail merge fields bookmarked text gets inserted.
This is the code I've written:
{IF {MERGEFIELD "MAILCELL"} = "1H" "{INCLUDETEXT C:\CELL.DOC CELL_1G2G}" ""}
{IF {MERGEFIELD "MAILCELL"} = "2H" "{INCLUDETEXT C:\CELL.DOC CELL_5F}" ""}
and so on.
The code works well, but sometimes there will be two bookmarks generated.
For instace the text for 1H will be at the end of the text for 2H when the
value is 2H.
Any ideas? Could it be realted to the values starting with numbers (just a
thought seems to be some kind of correlation with bookmarks and values
causing problems when they start with numbers)?
Thank you.