tonylilley
IS-IT--Management
Using MS Word 97, I have a simple requirement, which is to insert text from a file name that is built from a mail merge field which is embedded in an INCLUDETEXT statement. Code for this is:
{INCLUDETEXT "C:\\customer\\contacts_pl_{ MERGEFIELD company}.doc" \* MERGEFORMAT}
All text is set to Arial 10 regular in the source and target files.
Because the field 'company' is not populated until the merge is performed the instruction generates the error 'Error! Cannot open file.' in arial bold.
When the merge takes place the text in the source file inserts ok, except that the first 4 words are bold and the following text is set to Times Roman. It looks like the first 4 words are adopting the style of the error message and then setting the remaining text to Times Roman.
Does anyone please have a suggestion / solution for this?
{INCLUDETEXT "C:\\customer\\contacts_pl_{ MERGEFIELD company}.doc" \* MERGEFORMAT}
All text is set to Arial 10 regular in the source and target files.
Because the field 'company' is not populated until the merge is performed the instruction generates the error 'Error! Cannot open file.' in arial bold.
When the merge takes place the text in the source file inserts ok, except that the first 4 words are bold and the following text is set to Times Roman. It looks like the first 4 words are adopting the style of the error message and then setting the remaining text to Times Roman.
Does anyone please have a suggestion / solution for this?