Update fields on Doc Open

L

Lynn

In Word 2003, if you insert a field in a footer and
reference a doc property, save it in print layout view,
then update the doc property value, close the doc, then
when you open the doc the field in the footer does not
update. This works fine in Word 2000 - why does it not
work in Word 2003?
 
S

Shauna Kelly

Hi Lynn

I think that's just the way it works. Regrettably, the behaviour changed
between Word 2000 and Word 2002. You can use File > Print Preview to force
the fields to update.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
L

Lynn

Thanks Shauna
This is distressing news! I was hoping I was not going to
have to force the fields to update, we have tried this in
the past using our global template and it causes problems
with checking-out long documents from our document
management system.
Lynn.T.
 
C

Cindy M -WordMVP-

Hi Lynn,

I'm not certain whether it's related, but there was a
change about updating links from outside files. Perhaps
that's affecting this, as well. You might see whether
following the instructions in this KB article makes any
difference:

http://support.microsoft.com?kbid=330079
WD: How the Behavior of the Word Fields Changes After You
Install the Word
Update

Use 11.0 where the article mentions 10.0 as the Word
version.
In Word 2003, if you insert a field in a footer and
reference a doc property, save it in print layout view,
then update the doc property value, close the doc, then
when you open the doc the field in the footer does not
update. This works fine in Word 2000 - why does it not
work in Word 2003?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
G

Graham Mayor

You could limit the update to the footer with a targetted macro:

Sub Update()
Dim oField As Field
Dim oSection As Section
Dim oFooter As HeaderFooter

For Each oSection In ActiveDocument.Sections
For Each oFooter In oSection.Footers
If oFooter.Exists Then
For Each oField In oFooter.Range.Fields
oField.Update
Next oField
End If
Next oFooter

Next oSection
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top