Includetext doesn't update

R

Rishi

Hi,

I am using Includetext to link to bookmarks in a separate file. The
bookmarks are section headings. I have managed to include the bookmarks
with the following field code:

INCLUDETEXT "C:\\Shared\\Filename.doc" BkmarkName \!

However I am having some problems:
1. I need to fill in the complete path of the document although both
the source and destination docs are in the same folder. I need to have
a relative path as the parent folder will change often.
2. The section number is being updated with the numbering of the
destination doc. I need to have the section number of the source doc.
3. When I change the section heading text in the source doc, the
destination doc isn't being updated (after selecting Update field).

Are these normal Word 2003 behaviour? Does anyone know how to solve
these issues?

Rishi
 
G

Guest

1. I have never been able to get relative paths to work correctly with
INCLUDETEXT fields. It seems as if it works sometimes, and sometimes not.
Therefore, I'd say you have to use absolute paths. Note that if you need to
move the source files to a different location, you can display field codes
(press Alt+F9) in the target document and then use Edit | Replace to quickly
change the paths.

2. If you are referring to autonumbering, this is to be expected. The \!
switch only prevents you from updating *fields* in the source document.

3. The INCLUDETEXT field displays the *saved* version of the referenced
file(s). Make sure to save the source file before updating the field.

Also note that you can save changes made to an INCLUDETEXT field back to the
source document by pressing Ctrl+Shift+F7.
 
R

Rishi

Thanks for the reply Stefan.

For 1. - ok, I'll use absolute paths.

For 2. -

a)how can I insert a bookmarked numbered section heading from a
document into another document while keeping the source numbering e.g.

4.13 *Administration of client databases*
etc...
Please refer to section *2.5 Backing up data* for explanations
regarding the database dump procedure.
etc...

where section 2.5 is in another document (in my case it is also setting
the bookmarked text's style on the entire paragraph).

b)can I link to the section like for cross-references (ctrl+click)?

For 3. - It is still not updating in the document I was working on.
However, I have created 2 new documents and the update seems to work
now on these. I am now wondering whether there is a cached copy of the
original document that is giving me the problem. Any idea?

Rishi
 
S

Stefan Blom

2. a) In the source document, bookmark the paragraph you want to
reference. Then insert { SET myref "{ REF bookmarknamehere \n } { REF
bookmarkname here }" }.

In the target document, insert the following INCLUDETEXT field:

{ INCLUDETEXT "path_and_file_name_here" myref \! }

Repeat for additional paragraphs, using (obviously) a different
bookmark and a different SET field identifier.

b) I don't think this can be done. You could try inserting a hyperlink
instead.

3. Make sure that the field hasn't been locked which would prevent it
from updating. If it is locked, the Update Field command on the
context (right-click) menu will be greyed out, and nothing will happen
as you press F9.

Note: Ctrl+F11 locks, and Ctrl+Shift+F11 unlocks, any field in the
selection.

--
Stefan Blom
Microsoft Word MVP


in message
 
S

Stefan Blom

in message
2. a) In the source document, bookmark the paragraph you want to
reference. Then insert { SET myref "{ REF bookmarknamehere \n } {
REF
bookmarkname here }" }.

Correction: Of course, the name of the bookmark should be the same in
both REF fields.

{ SET myref "{ REF bookmark_name_here \n } { REF
bookmark_name_here }" }
 
R

Rishi

Managed to get the numbering in. But the update still doesn't work. Do
you think there might be a setting somewhere in Word that might be
causing this? or outside of Word ?The field is still keeping its
original value.
 
S

Stefan Blom

Note that the \! switch means that you have to update all fields in
the source document first; then you can update the INCLUDETEXT fields
in the target.

--
Stefan Blom
Microsoft Word MVP


in message
 
C

Cindy M.

Hi Stefan,
1. I have never been able to get relative paths to work correctly with
INCLUDETEXT fields. It seems as if it works sometimes, and sometimes not.
Word always checks relative to the *current directory*. So if you open a
document from another location, the relative paths in a different document
will no longer work...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
R

Rishi

Hi Stefan,

Everything seems to be working out fine now. I now have the numbering
and section heading included in the target doc and these are updating
correctly after I do a complete update of the source document.

Thanks a lot for all your help Stefan! I appreciate it.

Rishi
 

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