Thanks for the quick response.
I just tried your suggestion - I like the idea, however, I don't believe
that will work out quite right for me.
I'm not very familiar with fields in Word (other than the basic page
numbering, captions, cross-references, footnotes, and TOC), but based on the
information you provided and my quick experiment, using the STYLEREF would
require that the classification indicator (i.e. the (U), (X), (Y), and (Z))
to be its own style because it can only display the contents of a selected
style. In this case, probably a Heading style of some sort. This would
necessitate that an in-line heading be used (doable, but not very user
friendly when composing a long document).
My preference is to setup four different styles. The "parent" style would be
Normal (or Body Text) and the "children" would be:
Normal â€“ (U)
Normal â€“ (X)
Normal â€“ (Y)
Normal â€“ (Z)
Each of these styles would be exactly the same as the "parent" except for
the addition of a numbering prefix of (U), (X), (Y), or (Z) respectively.
With this particular setup, STYLEREF gives me the contents of the paragraph
rather than the classification level.
Additionally, the STYLEREF seems to only give the ability to find the first
or last occurrence of a particular style whereas I need to find the "highest
level" used. That is, (U) < (X) < (Y) < (Z).
I need something more along the lines of:
If "Normal - (Z)" was used on this page, then display "Z" else
If "Normal - (Y)" was used on this page, then display "Y" else
If "Normal - (X)" was used on this page, then display "X" else display "U"
I noticed an IF field on the Insert > Fieldâ€¦ dialog â€“ can something like the
above be achieved using this type of field? Macros and automated code are
frowned upon and automatically blocked.