Creating and Inserting Bookmarks

L

Lynda Kinley

How can I create several bookmarks in one document and then used them in the
main document? I am having trouble getting the bookmark defined in my main
document. Also is it possble to have logic around a bookmark--For example:

If bookmark (Name1) = XXX and Bookmark (Name2) = YYY, then includetext
MyLetter.doc.
 
G

Graham Mayor

If it is a mail merge document then you probably cannot use bookmarks in
this way. Bookmark names have to be unique.You cannot duplicate them for
each record. However if that is not what you are doing, the syntax which
should work every time is:

{ INCLUDETEXT "{ IF{ REF Name1 } = "XXX" "{ IF{ REF Name2 } = "YYY" "D:\\My
Documents\\Test\\Mydocument.doc" "D:\\My Documents\\Test\\Blank.doc" }"
"D:\\My Documents\\Test\\Blank.doc" }" }

Where blank.doc is an empty document.

The simpler
{ IF{ REF Name1 } = "XXX" "{ IF{ REF Name2 } = "YYY" "{ INCLUDETEXT "D:\\My
Documents\\Test\\Mydocument.doc" }" "" }" "" }
should also work in most circumstances.

Substitute your own docname and path
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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