Microsoft Word 2016 - Nested Field Code problem

Copper Contributor

Hi,

I have problem with Field Codes in Word Office 2016. The field code shows that for page number 10 value should be "test" but when I update field code I see value "REVISED PAGES" on page no 10. What is wrong ? How it is possible ?

 

Tomasz565_2-1726039988205.png

 

Tomasz565_3-1726040023616.png

 

 

Regards

Tom

 

 

 

3 Replies

@Tomasz565 

I cannot see what might be wrong. It could be your pagination.

Your work refers to sheets, which is normally a term used in Excel rather than Word.

I see that you supplied samples and will look at them.

 

The following does not answer your question but may be of assistance in creating IF Fields and Nested IF Fields:

The following is your field code:

{ if { PAGE \* Arabic } < 2 "REVISED SH.: 1 (ONLY FIRST PAGE)" { if { PAGE \* Arabic } < 8 "NO REVISION IS INTRODUCED IN THIS PAGE" { if { PAGE \* Arabic } < 12 "REVISED" { if { PAGE \* Arabic } < 17 "TEST" "TEST" } } } }

 

I use Graham Mayor's utility to convert field codes to/from text.

Convert Fields to Text and Vice Versa by Word MVP Graham Mayor

 

In your test document, this gives the result "TEST" on page 18 of the document when updated. That is because of the final false text setting. That should not be present or it should say something like "out of range."

@Tomasz565 

I am not seeing the problem in your test document on my system.

Charles_Kenyon_0-1726112991408.png

 

Note that these fields are in the footer, not the body. If you do Ctrl+A and then press F9 to update the fields, the update command will not reach them because they are in a separate "story." If you go into editing a header or footer and then use Ctrl+A followed by F9, you will update them. They should also be updating in the case of a print command.