As you've discovered, the \h switch doesn't work inside an IF statement. I don't believe there's a field coding workaround for what you're trying to do.
A macro could be used to compare the two Tables of Contents and delete or hide the second one if they match, but that's probably about as far as you could go
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|