Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / March 2006

Tip: Looking for answers? Try searching our database.

Global Find/Replace to get titles into TOC..!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MegaC - 02 Mar 2006 20:56 GMT
Hi all,

Note:  My aplogies for my earlier multipost!  Thanks to all help I
recieved!

I am writing a very looooong test plan (I am a verifier) and I have
about 100 test cases.  What I need to do is do a global search and
replace to update each of the titles with an 'outline level of 3" (I
think this is correct) so that the titles will appear in the table of
contents' on page 2 of my document.  Here is what I have done so far:

My titles look like the following (snipet):

Test ID (723) - Success Path - CLI Configure Acct-Interim-Interval
Timer
Test ID (724) - Session Release - 3GPP PCC - PCC end of call
Test ID (725) - Success Path - Session Cancelled - 3GPP PCC to 3GPP PCC

call session is cancelled by originator prior to successful set-up

All the titles are in white font on a blue background, so I can CTRL+H
and search on Format -> Font -> Font color = White, but what do I
replace them with so that they will all be updated codes that will be
picked up by my table of contents.

I tried doing this (with no luck) in the replace section:
CNTL+H
FORMAT -> Paragraph
Alignment = Left, Outline Level = 3

It seems to do something, as it says that 100 entries have been
modified, but yet when I go to my TOC and hit F9 to update the entire
TOX, nothing is updated!!

Am I on the right track?  What am I doing wrong?

HELP!
Derek
Robert M. Franz (RMF) - 02 Mar 2006 21:21 GMT
Hi Derek

> My titles look like the following (snipet):
>
[quoted text clipped - 20 lines]
>
> Am I on the right track?  What am I doing wrong?

You need to make sure that your TOC actually compiles itself from
outline levels (and not, say, from certain styles). In your position, I
would certainly replace the found paragraphs with a certain style (say,
"Heading 3") and change the style according to your needs, but that's
not a precondition to solve your immediate problem. [It might be a
precondition for handling large documents better, though, using styles,
I mean ... :-)]

So, in short: try selecting the first character of your TOC (this will
select the whole TOC). Hit SHIFT-F9 (this should display the TOC field
code). Look up the field codes in Word's offline-Helf on the TOC field.
Post the field code again in here if necessary.

HTH
Robert
Signature

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

MegaC - 02 Mar 2006 22:03 GMT
Hi Robert,

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

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

What do I do now?
Robert M. Franz (RMF) - 03 Mar 2006 13:09 GMT
> 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
Signature

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.