INCLUDETEXT field syntax for bookmark file on server

B

bthelen

I am trying to get Word to merge a phrase in a file called
bookmarks located on a server. On my PC the F: drive is
mapped to the folder where the bookmarks file is located,
but for other users it is another, so the merge does not
work for them.

Here is the phrase:

{ IF {MERGEFIELD CORR1 = "" "" "INCLUDETEXT
F:\\OfficeLetters\\2003\\bookmarks{MERGEFIELD CORR1}}

What is the syntax that indicates the server, not just a
drive id?

When I replace the F: with \\, I get "Error - file not
found".

Thanks,
Barbara T.
 
P

Peter Jamieson

Try

{ INCLUDETEXT
"\\\\servername\\sharename\\OfficeLetters\\2003\\bookmarks.doc"
"{ MERGEFIELD CORR1 }" }

Just in case it gets lost in transmission, you should see INCLUDETEXT
followed by a space, a double quote ("), then four backslashes. I've
spread the thing over three lines but you don't have to do that.

Word may discard the "" around the bookmark

All the {} need to be the special field braces you can insert using ctrl-F9.

The whole thing would be

{ IF "{ MERGEFIELD CORR1 }" = "" ""
"{ INCLUDETEXT
"\\\\theservername\\thesharename\\OfficeLetters\\2003\\bookmarks.doc"
"{ MERGEFIELD CORR1 }" }" }

If the "" is not very common you could consider adding (say) a "C" at the
beginning of every bookmark name in bookmarks.doc and having a bookmark C to
cope with the case where CORR1 is empty. then e.g. no IF field, just

{ INCLUDETEXT
"\\\\theservername\\thesharename\\OfficeLetters\\2003\\bookmarks.doc"
"C{ MERGEFIELD CORR1 }" }
 

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