Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2003

Tip: Looking for answers? Try searching our database.

INCLUDETEXT field syntax for bookmark file on server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bthelen@bergen.edu - 21 Nov 2003 21:29 GMT
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.
Peter Jamieson - 22 Nov 2003 14:33 GMT
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 }" }

--
Peter Jamieson - Word MVP

> 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
[quoted text clipped - 15 lines]
> Thanks,
> Barbara T.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.