Results 1 to 7 of 7
  1. #1
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Field UserAddress not updating (Word 2003)

    I have a document created in Word 97 where I placed the field UserAddress in the footer. Under Tools Options User Address users input their local address. This is a way to get around a document used in various office in our department. When the user opens the document on their machine the correct address is present thus eliminating the need for many different masters.

    We recently upgraded ot Office 2003 and now this field does not update. Has anyone experienced this problem and is there a workaround.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field UserAddress not updating (Word 2003)

    Starting with Word 2002 (XP), some fields aren't updated any more when you open a document. Fields in the header and footer should update automatically, however, when you

    - Switch to Normal view, then back to Print Layout view, or
    - Print preview or print the document.

  3. #3
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Field UserAddress not updating (Word 2003)

    Hans is it possible to write a macro to update fields on opening the document?

    Regards
    Kerry

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Field UserAddress not updating (Word 2003)

    Does this work? I haven't tested this. Try pasting the following code into the ThisDocument module of the Normal template:

    <code>Sub Document_Open()
    If ActiveDocument.Fields.Count > 0 Then
    If MsgBox("Update all fields?", vbYesNoCancel + vbQuestion) = vbYes Then
    ActiveDocument.Fields.Update
    End If
    End If
    End Sub</code>

    If you prefer not to be prompted, then ActiveDocument.Fields.Update might be all you need.

  5. #5
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Field UserAddress not updating (Word 2003)

    Thankyou. It seens to work only on the field if it is in the body of the document. Doesnt update the field in the header or footer.

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field UserAddress not updating (Word 2003)

    Try the macro from WD2000: How to Automatically Update Fields (applies to later versions too).

  7. #7
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Field UserAddress not updating (Word 2003)

    Thankyou Hans - this works. Problem solved!

    Isnt it such a buzz when you help someone solve a problem!!
    <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30>

    Kerry

Posting Permissions

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