View Single Post
  #11   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default auto copy text in word to another text field in word

I take it that the .ext you entered was actually .doc

so that it actually looks like (e.g.)

{INCLUDETEXT "C:\\path\\filename.doc" bookmarkname}?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Peter Hansen wrote:
Hi macropod,

Thank you for your quick reply. When I explained the problem, I
neglected to type in the Drive:\\path\\ part of the syntax, but I had
copied it out of the "location" part of the document info, so it does
look just like you wrote that it should look. Then I hit f9 and it
again came up with the "Errror" bad filename notice in the grey
shaded area. I tried it with the .ext at the end of the
location/filename and without it and I still got the error message.
I also checked on the bookmark in doc A and it was right where it
should be. So, I don't understand why it keeps saying "error bad
filename." Can we rule out the supernatural? (Partially kidding).
Can you see any other areas where I might be earning this "Error! Bad
filename" scourge?

Peter

"macropod" wrote:

Hi Peter,

The correct syntax for the INCLUDETEXT field pointing to a bookmark
is: {INCLUDETEXT "Drive:\\path\\filename.ext" bookmark}
or
{INCLUDETEXT "Drive:/path/filename.ext" bookmark}

If you "have an all gray field with lots of neat looking commands",
that suggests you've either not updated the field after coding it
(selecting the field and pressing F9 will do the trick) or you've
pressed Alt-F9 somewhere along the way and toggled the field code
display 'on' - pressing Alt-F9 again will fix that.

The bookmark goes in the source document (ie the document you're
linking to, not the target document with the INCLUDETEXT field).
Note too that the bookmark can span multiple lines/paragraphs if
that simplifies things.

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

"Peter Hansen" wrote in
message ...
Thank you for responding to my question and suggesting INCLUDETEXT.
It gave me the perseverance to keep going in this task. But I have
had a lot of problems trying to make this work and still have not
succeeded. I wonder if you could give me some additional guidance.

Here's what I've tried so far. First I had to create the bookmarks
in document A (Patient_Name, DOB, Location, Date_Eval,
Referral_Reason, Diagnoses, Treatment_Plan). Then I switched to
document B and attempted the field command INCLUDETEXT. I had a
number of problems trying to make this work. First I was getting
an error message that I had the wrong file name. The best I could
do was to push control/f9 and then follow their example:
{INCLUDETEXT "filename" [bookmark]}. I did not put brackets around
the bookmark, that seemed to help. However, the closest I came to
success was to have an all gray field with lots of neat looking
commands. At least it didn't say "error" message. But when I
checked print preview, there was nothing in that field. No text
had been transferred to document B. Oh, by the way, I did replace
single backslashes with double backslashes in the filename. I did
not use any switches because I couldn't see any that seemed
relevant to my task.

I'm wondering if the problem might be with the bookmark. Some of the
references to bookmarks specified that "the bookmark must be
defined in the active document." Others stated that the bookmark
must be inserted in the "main document." In either case, I'm not
sure how I would refer to a bookmark referencing information in
document A while creating the bookmark in document B. I am wonder
if you might have any ideas how to proceed from here. Thank you
again for all your help!


"macropod" wrote:

Hi Peter,

Check out the INCLUDETEXT field. It provides for cross-referencing
between documents, including referencing bookmarks in the source
document.

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

"Peter Hansen" Peter wrote in
message ...
what if you want to send the information to another Microsoft
Word 2003 document. I think cross-reference is only for use in
the same document. I am trying to find a way to send the
information to another Word 2003 document. Are there any good
articles on that?


"Anne Troy" wrote:

Don't use a field for the subsequent instances. Use a
cross-reference instead. Here's how it's done:
http://www.officearticles.com/word/c...oft_word .htm
************
Anne Troy
www.OfficeArticles.com

"earljones" wrote in
message
...
im using microsoft office 2003, how do i set a text field in a
word form so
that the information in the field is copied to several other
fields automatically. My office uses an intake document where
the client's name must
be typed several times as well as some other information in the
document.