Results 1 to 9 of 9
  1. #1
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    272
    Thanks
    3
    Thanked 0 Times in 0 Posts

    How can I get a Text Field on a cover to automatically update same field in header on other page?

    Hello,

    I am using the latest version of Word (Office 2016) on Windows 7 and am wondering how I can get
    a Text Form Field on a cover page to update another Text Form Field (with the same data) inside the actual heading on another page.

    I would prefer for this to happen automatically (without use of a macro).

    At this time, it is not working and I have to manually update the field on the cover page, as well as the field in the heading on another page.

    As for the settings in my version of MS Word, I already have the following options checked:

    Word Options>Display>Printing options

    Update fields before printing
    Update linked data before printing

    Thanks in advance for any suggestions (or sample files) that you can provide.

    Regards,

    James

  2. #2
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    There are several ways. Here are two:
    1. Use a particular style (paragraph or character) for the information on the cover page and a StyleRef field in the header.
    2. Use a Document Property Content Control for the one and copy it to the header.


    If you want more, this article by Greg Maxey lists all of them of which I have any knowledge.
    Charles Kyle Kenyon
    Madison, Wisconsin

  3. #3
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    You don't need a formfield for the one doing the replication. The simplest approach, which Charles has already mentioned, is to use a StyleRef field. The next simplest would be to check the formfield's 'calculate on exit' property and use a cross-reference to the formfield's internal bookmark name.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  4. #4
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    272
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks Paul. I got it working now.

  5. #5
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    272
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks Charles,

    I really appreciate it. I ended up putting the StyleRef field in the header and then linked back to the style on the cover page - made a change to the text in the style on the cover page and it worked.
    It is not a real time (as you type it) update, but the change is seen in the header with a refresh (or by saving the document, closing it and reopening it).

    This will do the trick and I appreciate your assistance.

    Best regards,

    Jim

  6. #6
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    You are welcome. I'm glad to have been of help.

    My experience with the StyleRef field is that it is real-time when in a header.
    00 deleteme 1.png

    When the original is changed, the Styleref field changes as changes are typed. This is with a character style applied through the content control's properties. I believe it would work the same with a directly applied character style.

    00 deleteme 2.png
    Charles Kyle Kenyon
    Madison, Wisconsin

  7. #7
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Regardless of whether you're just typing in the document body, a formfield or content control, a StyleRef field referencing the Style used by that content updates as you type. There is no need to refresh anything.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  8. #8
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    Quote Originally Posted by macropod View Post
    Regardless of whether you're just typing in the document body, a formfield or content control, a StyleRef field referencing the Style used by that content updates as you type. There is no need to refresh anything.

    In my experience, StyleRef fields in the body of the document do have to be update in the same way REF fields require it. Those in a header or footer are updated as you type.
    Charles Kyle Kenyon
    Madison, Wisconsin

  9. #9
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Quote Originally Posted by Charles Kenyon View Post
    In my experience, StyleRef fields in the body of the document do have to be update in the same way REF fields require it. Those in a header or footer are updated as you type.
    Agreed - I accidenatlly omitted the 'header or footer' qualifier from my reply.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

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