Results 1 to 13 of 13
  1. #1
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    The help file said that if I add the switch ! to my INCLUDETEXT, it will not update the fields but it's updating.

    I have a footer with PAGE field and I don't want it to update. I want the page page number in the included document to stay the same.

    Any ideas how to fix this?

    Thanks,
    --Maria

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Maria:

    I have Word 2000, but it should work. Post the exact syntax of the field. The switches go at the end, so it should look like this:

    {INCLUDETEXT "filepath" !}

    where filepath is the complete filepath. Be sure to use quotes if there are spaces in the filepath name & use double back slashes between folders.

    Hope this helps.

  3. #3
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    That is exactly what I did: {INCLUDETEXT "C:MyFilesLetter01.doc" !}

    and still, the fields are being updated.

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    I'm not sure, but try:

    {INCLUDETEXT "C:MyFilesletter01.doc" !}

    Note the double backslashes.

  5. #5
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    I forgot to change the single slash to double, but your code is exactly the same as mine.

    Thanks
    --Maria

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Maria:

    Glad to help. Are you saying it's working now? If not, attach a page with the code.

  7. #7
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    No, it's not working <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23>

  8. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Maria:
    Attach letter01.doc to a post & I'll look at it.

  9. #9
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    I am attachig 2 documents in a zipped file.

    Thanks so much for your help.

    -Maria
    Attached Files Attached Files

  10. #10
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Maria:

    I took a look at the attachment. However, you sent 2 copies of the target document. I'd like to look at the source document to see what kinds of fields your bringing in. I can't tell from what you've sent what the page number should actually be. It seems that the source document is named "506p.doc". Attach that if you could.

  11. #11
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    Thank you for your patience.

    File is attached.

    --Maria
    Attached Files Attached Files

  12. #12
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Maria:

    I looked at the source of your document. It appears to me that more is going on. The {includetext} field is part of an IF field & inserts mergefields. Of course, on the document that you sent, there are no mergefields or bookmarked fields. When I print out your sample, even after changing the code so that the INCLUDEFIELD refers to the proper filepath on my computer, I get a 1 page document with no page numbers. That's because the first condition of the IF field is not satisfied.

    This is the code that I copied inside the IF field:

    { IF { MERGEFIELD Field11 } = "Y" " THIS IS THE INCLUDED DOCUMENT: SEE FOOTER, PAGE NUMBER CHANGES TO 3 INSTEAD OF 1.


    { INCLUDETEXT "Cownload10-90731-506p.doc { MERGEFIELD Field7 }" ! }" "" }

    The box before the words that start "THIS IS THE..." is an odd page section break.

    If I simply use the INCLUDETEXT field as described in your original post with the target file (modified for the path on my computer), the fields do not update. The pages then print from 1 of 5 to 6 of 5. The reason is that it appears that those are the fields in the original document. The page of pages document is itself a pageref field, which points to a bookmark not inlcuded with your document.

    If there is no reason to have the IF field, etc., simply create a new includetext field in your target document. If you are trying to do something else, let me know. (it's been one of those days & I'm feeling a little dense <img src=/S/meltdown.gif border=0 alt=meltdown width=15 height=15>

  13. #13
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: \! Switch in INCLUDETEXT updating fields (Word 97 SR2)

    Hi Phil:

    I'll zip up all the files so you can see what I am trying to do.

    Thanks so much!

    Maria

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •