Re: going crazy - need help with INCLUDETEXT!!!



Hi David,

Deleting the filepaths doesn't change where Word looks for the files - the only way to do that is to provide a new path (which you've now done).

As for the 'lower-level paragraphs', I suspect this is something to do with that square character you referred to acting as a bookmark reference of some kind. Try deleting them and see what happens.

Cheers

--
macropod
[MVP - Microsoft Word]
-------------------------

"unfrostedpoptart" <david@xxxxxxxxxxxxxx> wrote in message news:1173593342.623907.208890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 10, 7:27 pm, "macropod" <inva...@xxxxxxxxxxxxxxx> wrote:
Hi David,

First off, Word's help file explains the INCLUDTEXT field's usage pretty well.

OK, so you want to change the filename. From your description it sounds like you've done everything except update the field after
making the change. Simply changing the filename without updating the field isn't enough. Select the field and press F9 to update it.

As for the square symbol you described, I can't see any reason for it being there. Usually, the only thing I'd expect to see after
the filename is a bookmark name (if you're linking to a bookmark in the source document), and whatever field switches you're using.

The other thing that seems to be missing from your field is the source filename's path. Sometimes you can get away without it, but I
think you have to be adding the field to a document that's already been saved and have the source file in the same folder. Note that
deleting the path from an existing field doesn't change the path Word uses to find the file.


Thanks for the help. It sort-of works, but it's still not making
sense. First, the path thing: the original document used absolute
paths. In order to simplify things, I put everything in one directory
and removed the paths. For some documents this is fine, but for some
of them it doesn't, and I had to put back in the path! Then, to be
even weirder, once it worked with the full path, I then removed
everything but the filename, updated the field, and it still worked!
This is what I had (not working) in the first place!

I also don't understand why sometimes it inserts a lower-level
paragraph with empty body text and sometimes it doesn't.

David


.



Relevant Pages

  • Re: going crazy - need help with INCLUDETEXT!!!
    ... Word's help file explains the INCLUDTEXT field's usage pretty well. ... Simply changing the filename without updating the field isn't enough. ... the filename is a bookmark name, and whatever field switches you're using. ...
    (microsoft.public.word.pagelayout)
  • Re: auto copy text in word to another text field in word
    ... The other way is to format the 'R' in each of the REF fields with the font attributes you want and apply a CHARFORMAT switch to the fields, ... So I turned off the automatic bold component ... followed by the 'correct' bookmark name after the the double quote following the filename. ... Make a copy of the INCLUDETEXT field, press Shift-F9 to expose the field code and change the bookmark name to another of the ...
    (microsoft.public.word.newusers)
  • Re: auto copy text in word to another text field in word
    ... but I still end up with Error bad filename. ... added the bookmark name after that. ... I begin with INCLUDETEXT. ... "macropod" wrote: ...
    (microsoft.public.word.newusers)
  • Re: auto copy text in word to another text field in word
    ... "macropod" wrote: ... You should see either a LINK field or an INCLUDETEXT field, either of which should show you the correct syntax for the field ... followed by the 'correct' bookmark name after the the double quote following the filename. ... Make a copy of the INCLUDETEXT field, press Shift-F9 to expose the field code and change the bookmark name to another of the ...
    (microsoft.public.word.newusers)
  • Re: auto copy text in word to another text field in word
    ... The error message you're getting tells me there's something wrong with the path and/or the filename, or maybe you haven't wrapped the lot is double quotes. ... [MVP - Microsoft Word] ... I also checked on the bookmark in doc A and it was right where it ... The correct syntax for the INCLUDETEXT field pointing to a bookmark is: ...
    (microsoft.public.word.newusers)