Includetext - Can you ignore, if the bookmark is not found?

E

Ed Turney

I am inserting paragraphs (which are bookmarked) from
another document using the INCLUDETEXT function. I have
been successful in even using a MERGEFIELD as the bookmark
using the following:

{INCLUDETEXT C:\\TEMP\\Bookmarks.doc {MERGEFIELD
commentcode}}

The problem though, is when the {MERGEFIELD commentcode}
is not in the Bookmarks.doc. "Error!Bookmark not defined"
is printed in the merged document. There are 275 possible
commentcodes, but only 50 or so actually need to be
printed on the letter. Can I do an "If" statement and
exclude the commentcode if the bookmark is not found?

Thank you for your time.

et
 

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