Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Updating fields in Word 2007 | Microsoft Word Help | |||
Table captions using STYLEREF and SEQ fields? | New Users | |||
keyboard shortcut in Word 2003 for updating ALL fields including headers and footers | New Users | |||
Updating formula fields - XP vs 2003 | Microsoft Word Help | |||
Troublesome Styleref fields in headings | Formatting Long Documents |