View Single Post
  #4   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Robert M. Franz (RMF)
 
Posts: n/a
Default Global Find/Replace to get titles into TOC..!!

MegaC wrote:
I did as you said, and when I hit SHIFT-F9, I get this:

{TOC \o "1-3" \h \z \u


OK, the \o switch gathers paragraphs that are formatted in Heading 1-3,
and the \u switch those where an outline level is set (manually or
through style).

IOW, _if_ your replace-run was successfull, _and_ your TOC is updated
(select it again and hit F9, maybe SHIFT-F9, too, if it still shows the
code), then the TOC should show those entries.

If not, go to one of those entries in the text and check under Format |
Paragraph in the Layout tab whether the outline level is indeed
Bodytext ...

Greetinx
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word