Hi everyone,
I'm using the Dutch version of Word 2013.
In a template for reports I have created for one of my clients, the header should display:
- text in the style “Bijlage” whenever the report has an enclosure;
- the text “Colofon” at the colophon at the beginning of the report;
- the text “Inhoudsopgave” at the table of contents at the beginning of the report, directly after the colophon;
- text in the style “Kop 1” (Heading 1) elsewhere.
In order to achieve this behavior I have included this field in the header:
{ IF { BijlageTitelCompleet01 } = “Fout! Bladwijzer niet gedefineerd.” { IF { PAGE } <= { PAGEREF Inhoudsopgave } { STYLEREF “ColofonInhoud” } { STYLEREF “Kop 1” } } { IF { PAGE } >= { PAGEREF BijlageTitelCompleet01 } { STYLEREF Bijlage} { IF { PAGE } <= { PAGEREF Inhoudsopgave } { STYLEREF “ColofonInhoud” } { STYLEREF “Kop 1” } } } }
"Fout! Bladwijzer niet gedefinieerd." translates to "Error! Bookmark not defined." in English Word versions.
If a report has one or more enclosures, the bookmark BijlageTitelCompleet01 encapsulates the title of the first enclosure.
The bookmark Inhoudsopgave resides on the page with the table of contents.
Both the colophon and the table of contents contain the right tekst (“Colofon” resp. “Inhoudsopgave”) in the style “ColofonInhoud”.
The field displays text as intended; the trouble is that it only does so every now and then. Or better: "Colofon" and "Inhoudsopgave" show up all the time at the right locations so that's fine - but any texts in "Kop 1" style or "Bijlage" style remain invisible. F9 does not work. Sometimes however - hey presto! - all of a sudden the field does display text in those styles, and this seems to happen when I copy individual parts of the large field elsewhere in the header in order to check their results. I cannot lay my finger on when exactly the field starts behaving like it should. This is highly frustrating - especially because I cannot think of an alternative approach to achieve the desired results.
What is happening here, and how can I get the field to behave correctly?
Thank you,
Cooz