Combining INCLUDETEXT w/MERGEFIELD

R

Richard

Is it possible to use the INCLUDETEXT field along with the
MERGEFIELD field together in one command. I tried the
following but I get "Invalid Filename"

INCLUDETEXT "c:\\directoryname\\subdirectoryname\\filename
{MERGEFIELD LTP}.XLS"

Any Suggestions?

Thank you
Richard
 
P

Peter Jamieson

Is it possible to use the INCLUDETEXT field along with the
MERGEFIELD field together in one command.

Yes. But to get it right, the { MERGEFIELD } must also use the special field
braces you can insert using ctrl-F9, and in this case

"filename{ MERGEFIELD LTP }.xls" must evaluate to exactly the correct file
name. If you have a space after the "e" of filename or elsewhere it won't
work (unless there is one in the file name), or if LTP has leading or
trailing spaces that aren't in the filename, it won't work.

If you still don't see the result you are hoping for, try merging to an
output file, checking that the remaining INCLUDETEXT fields have what you
expect in them, and re-executing the { INCLUDETEXT } fields (select, then
F9).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top