TOC entry that needs to be hidden in document

B

Bob Reynolds

I have a WORD document that I'm putting a TOC in. I've inserted the TOC and
all works great except for.
I have heading 1 set up and when I update the TOC everything shows fine.
However I need to have the "heading 1" for one page be hidden and/or
invisible on the page, but it must appear in the TOC with black printing.

I've tried hiding the text in the document and it hid it in the TOC also.
I've tried making it in White color but that color transfers over to the
TOC. Then I've even had the whit eprint in the TOC changed to black and it
works, UNTIL I update fields, then it's back to white.

Any suggestions, I'm really on a rush right now to get this done by this
evening....
Thanks
BOB
 
S

Shauna Kelly

Hi Bob

There's no obvious, built-in way to achieve what you want. But here are some
ideas that might work for you.

If your headings are not numbered, create a new style which looks and feels
like Heading 1. Make sure it's Outline Level is set to "Body Text" (it's
among the Paragraph settings for a style). Apply this style to your heading.
Unless you explicitly add your style to your TOC, your paragraph won't
appear in the TOC.

If your headings are numbered, then it will be trickier.

You could create a new style and base it on Heading 1. It should then pick
up Heading 1's numbering. Set its Outline Level to "Body Text" so it won't
appear in the TOC. But... if you do this, you're exploiting a flaw in Word's
object model. You may then experience other problems, especially if you're
copying and pasting from one document to another. Maybe try this out on a
copy of your document. If it works for you, and if your document is intended
to be short-lived, then fine.

As a last resort, create a bookmark that goes from beginning of the document
to the problem paragraph. And then another that goes from just after the
problem paragraph to the end. Use the \b switch in the TOC (see Word's help
for more details) to restrict the TOC to the bookmarked range. You'll need
two TOCs, one for each bookmarked range, and they'll need an empty paragraph
between them. But you can make that empty paragraph hidden.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
S

Suzanne S. Barnhill

Shauna's approach will work for having the heading in the doc but not the
TOC, but I think you want the other way around. In this case the easiest
solution is to insert a TC field, which specifies the text you want for the
TOC entry and the level it should be. See Word's Help under "Field codes: TC
(Table of Contents Entry) field."
 
B

Bob Reynolds

Suzanne, Yes this was what I wanted and your solution worked. Thanks to both
of you for responding and thanks for being there
Regards
BOB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top