With multiple TOCs in your document, I'd have expected there to be a \b switch pointing to the bookmarked range used for each. I don't see that in the code you posted. Something like:
{ TOC \O "1-2" \H \Z \W \B BkMk1}
without the need to have a separate FIRSTLIST, SECONDLIST, etc. Styles. For which you could then code along the lines of:
{IF{TOC \o "2" \B BkMk1}= "Error!*" "" {TOC \O "1-2" \Z \W \B BkMk1}}
Just changing the bookmark names. As it is, you should be able to use something like:
{IF{TOC \T "ITEM HEADING - FIRSTLIST,2"}= "Error!*" "" {TOC \O "1-1" \Z \T "ITEM HEADING - FIRSTLIST,2" \W}}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|