TOC shows styles not selected for inclusion

J

Jennifer Thomas

I have a TOC configured to show 3 levels, and options for
captions, etc to be included are NOT enabled. But when I
updated the table, all the figure captions and even some
lines that are labled as "normal" show up in the TOC.

If I manually select and re-apply the "Normal" style,
then update the TOC again it works, but this is a long
document.

Does anyone know of a patch or a better way to quickly
fix this issue? Your help would be much appreciated!
 
D

Dayo Mitchell

Have you been using the Document Map on this document? It adds outline
levels to lines it thinks are headings, and the TOC picks up outline levels.

On the assumption you have been using the Doc Map, suggested workarounds and
a couple aids if Doc Map just ruined your careful formatting:

Don't use the Document Map, use Outline View instead:
http://www.mvps.org/word/FAQs/Formatting/UsingOLView.htm

On switching into the Doc Map, look to see if a new AutoFormat has been
added to the Undo list. That's the application of outline levels. Undo it.
Remember to check for this every time, though it may not happen every time
(this workaround has only been tested on a Mac, and not thoroughly).

After the fact fixes:

Use the ResetPara command on the affected paragraphs to remove all direct
paragraph formatting and reset the para to only style-based formatting (the
doc map adds outline levels as direct formatting). ResetPara will not
affect direct character formatting (bold, etc) and the usual keyboard
shortcut is control-q (cmd-opt-q on a Mac).

Run this handy macro once posted by MVP Klaus Linke that resets the outline
level of every paragraph to the outline level that is set in the style.

Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
myPara.OutlineLevel = _
myPara.style.ParagraphFormat.OutlineLevel
Next myPara

If necessary, see:
What do I do with macros sent to me by other newsgroup readers to help me
out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
(Mac: http://word.mvps.org/MacWordNew/InstallMacroMac.htm)

Hope that helps,
DM
 

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