You can use { = { NUMPAGES } - 1 } to get the desired result. Alternatively,
if you have only one section break in the document, you can use the
SECTIONPAGES field instead.
Ah - Thanks! Thought I'd tried that one, but I'll try it again
No, this doc has about 12 sections (wanted add'l styleref's in some
headers, not in others!)
A hyperlink to a specific heading should go to that heading, not to the
TOC
That's what I thought! It was going to the specific heading until I
inserted the TOC to see what it looked like.
at all, so I'm not sure what's going on there. If you're trying to link to
an *entry* in the TOC, then this will be either deleted when you update the
TOC field or applied to the entire field (and there are easier ways to go to
the TOC). Can you explain this problem a little more clearly?
Hmmm... well, for example, I have some text that says "Please see 7.12
Appendix #12." with "7.12 Appendix #12" hyperlinked to "7.12 Appendix
#12 - blah blah blah" [formatted as Heading 1, so it will get picked
up in the TOC, which it does]
But if I clicked on any of those hyperlinks, it goes to the *top* of
the TOC i.e. not even to the item in the TOC, hence my need for a
workaround.
[In this instance, btw, I was compiling a doc that was in response to
a gov't agency RFP - and the formatting in *their* specs doc was an
absolute dog's breakfast - but it had to be included in the proposal -
verbatim, and I didn't have time to clear their formatting for the
entire doc (and properly apply styles to make it look the same as
theirs) only for the sections requiring responses ... but they didn't
allow enough room for more than one line in any of the responses -
so I ended up with 25 appendices (and then some!) with each appendix
having a reference back to their [oddball] numbering!
It could be that there was something in their formatting in the parts
I didn't touch (they used ¶'s for spacing and hard page breaks etc. -
and sometimes they'd use autonumbers mixed with inserted numbers e.g.
1, 2 and 3 would be autonumbered, 4 wouldn't then 5,6 might be then 7
wouldn't etc). Needless to say it was ugly - thank goodness for the
"use destination/keep source formatting" options on paste!]
hro