Results 1 to 9 of 9
  1. #1
    3 Star Lounger
    Join Date
    Aug 2003
    Location
    Green Bay, Wisconsin, USA
    Posts
    396
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Breaking REF link (2002)

    Somewhere I think that I read that it is possible to break the REF field link. I have FORMTEXT fields to be filled in a protected template. The information (such as client name, project name) in needed throughout the document. I used REF fields to reference the bookmark named fields.

    Now the "powers that be" want to separate the document into pieces, of course, the REF fields can't find the bookmarks.

    Is there a way to break that link and keep the text typed in the field? Or is there another way to set up the template to avoid the issue.

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Breaking REF link (2002)

    Control - Shift - F9 will unlink all fields in the selection, replacing the field with it's current contents.

    StuartR

  3. #3
    3 Star Lounger
    Join Date
    Aug 2003
    Location
    Green Bay, Wisconsin, USA
    Posts
    396
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Breaking REF link (2002)

    Thanks, Stuart.

    Must I Ctrl+Shift+F9 before we separate the document into pieces? or does it work after?

  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: Breaking REF link (2002)

    I think Stuart's offline right now so I'll jump in. You can use it to unlink a field at any time that your document(s) is/are unprotected. You can do all fields at once by Ctrl+A, followed by Ctrl+Shift+F9. But make sure you want to unlink ALL your fields before doing that.

  5. #5
    3 Star Lounger
    Join Date
    Aug 2003
    Location
    Green Bay, Wisconsin, USA
    Posts
    396
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Breaking REF link (2002)

    Thanks for jumping in, Phil.

    Will the Ctrl+Shift+F9 do anything to the FORMTEXT fields themselves or just the REF fields? I believe only the two types of fields are in the document.

  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: Breaking REF link (2002)

    Yes, unlinking all fields will replace the formfields, as well as the REF fields, with their contents. If that's not what you want, you'll need a macro to loop through the REF fields.

  7. #7
    3 Star Lounger
    Join Date
    Aug 2003
    Location
    Green Bay, Wisconsin, USA
    Posts
    396
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Breaking REF link (2002)

    Thanks, Phil.

    I'm not very good at macros. I have a reference manual for macros that I just got. Someday I'll find time to learn macros.

    My first choice is to avoid macros if I can. What comes to my mind is hiding the parts of the document that should not be seen by the client and password protecting the document sent to the client. It probably wasn't a good idea to put 5 documents (templates) together as one, just to make sure all the documents were created. The original idea was to print to PDF only the sections to go to the client, which should work just fine.

  8. #8
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Breaking REF link (2002)

    This macro will unlink all REF fields in the main document, It would need to be more complex if you have REFs in headers, footers, text boxes or other stories.
    <code>
    Sub UnlinkRefs()
    Dim fldNext As Field

    For Each fldNext In ActiveDocument.Fields
    If fldNext.Type = wdFieldRef Then fldNext.Unlink
    Next fldNext

    End Sub
    </code>
    StuartR

  9. #9
    3 Star Lounger
    Join Date
    Aug 2003
    Location
    Green Bay, Wisconsin, USA
    Posts
    396
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Breaking REF link (2002)

    Thanks, Stuart.

    We will give the macro a try.

Posting Permissions

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