Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Henry Henry is offline
external usenet poster
 
Posts: 21
Default Word 2003 updating fields with styleref

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

--
Henry
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Word 2003 updating fields with styleref

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


"Henry" wrote:

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

--
Henry

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Word 2003 updating fields with styleref

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


"Henry" wrote in message
...
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

--
Henry











Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating fields in Word 2007 JackRazz Microsoft Word Help 3 January 19th 08 02:19 AM
Table captions using STYLEREF and SEQ fields? Ed New Users 3 January 12th 07 02:01 PM
keyboard shortcut in Word 2003 for updating ALL fields including headers and footers Adrian New Users 2 May 3rd 06 08:49 AM
Updating formula fields - XP vs 2003 Elton Hurrell Microsoft Word Help 4 April 10th 06 11:55 AM
Troublesome Styleref fields in headings homeologica Formatting Long Documents 4 November 23rd 05 08:28 AM


All times are GMT +1. The time now is 06:41 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"