Forum Discussion
Microsoft Word 2016 - Nested Field Code problem
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:
- Charles_KenyonSep 12, 2024Bronze Contributor
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."