S
stuartjbray
Hi
I have a TOC in a template which only picks up certain types of
headings. This works fine when these headings are being used, but when
they aren't being used you get an ugly "Error! No Table of Contents
entries found" message. I don't want it to show this message.
As far as I know there is no TOC switch you can use to disable the
error message.
I know how to hide my TOC by formatting it as hidden. I can write the
VBA to toggle whether or not it shows. So my fallback plan was to have
a macro which searches the document for this type of text, and if it
can't find it, hide the TOC.
Am I missing something here?
Help appreciated gratefully.
I have a TOC in a template which only picks up certain types of
headings. This works fine when these headings are being used, but when
they aren't being used you get an ugly "Error! No Table of Contents
entries found" message. I don't want it to show this message.
As far as I know there is no TOC switch you can use to disable the
error message.
I know how to hide my TOC by formatting it as hidden. I can write the
VBA to toggle whether or not it shows. So my fallback plan was to have
a macro which searches the document for this type of text, and if it
can't find it, hide the TOC.
Am I missing something here?
Help appreciated gratefully.