Word 2003 updating fields with styleref

H

Henry

Hi

I have as set of documents where I have a change log table on the last page,
and in the header I have 2 fields which refers til the change log table via a
styleref (something I was help with in another thread), it looks like this

{QUOTE{IF{PAGE}={NUMPAGES} {SET MyRef1 {STYLEREF "LogVersion" \l}}}{REF
MyRef1}}

{QUOTE{IF{PAGE}={NUMPAGES} {SET MyRef2 {STYLEREF "LogDate" \l}}}{REF MyRef2}}

It actually works, most of the time, the problems is that it's not clear
when it is updated.
To get it updated I sometimes have to close, reopen the document and use
preview and/or F9 (update fields).

Does anyone know why that is and if I can work around that?

regards
Henry
 
D

DeanH

As you have found StyleRef (along with many other Fields) do not
automatically update when edits occur.
No need to close/open, just Ctrl+A (to select whole document) then F9.
You could also check the "Update Fields" on the Tools, Options, Print dialog.
This ensures that any print will have updated information.
Maybe someone on this Usergroup has a macro that will update all fields
before/upon save, then you could have another Field (!) on your change log
that indicates the last save date & time (see DocProperty fields).
Hope this helps.
DeanH
 
S

Stefan Blom

STYLEREF usually updates fine (in headers and footers). I believe the SET
field is the culprit here. I think you will find this code more useful:

{ IF { PAGE } = { NUMPAGES } "{ STYLEREF "LogVersion" \l }" }

{ IF { PAGE } = { NUMPAGES } "{ STYLEREF "LogDate" \l }" }

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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