A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2006, 08:56 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Global Find/Replace to get titles into TOC..!!

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

  #2  
Old March 2nd, 2006, 09:21 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Global Find/Replace to get titles into TOC..!!

Hi Derek

MegaC wrote:
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?


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
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
  #3  
Old March 2nd, 2006, 10:03 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Global Find/Replace to get titles into TOC..!!

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?

  #4  
Old March 3rd, 2006, 01:09 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
find/replace box should not move cwmacminn General Discussion 10 December 21st, 2005 03:55 AM
Linking v Embedded Jim Bunton General Discussion 5 August 10th, 2005 11:09 PM
Global calendar jaams-cmvt Calendar 0 April 15th, 2005 04:31 PM
Global Find/replace function in Access SQL view MCE Running & Setting Up Queries 2 February 11th, 2005 05:13 AM
Browse Button in Access Spammastergrand Running & Setting Up Queries 6 August 31st, 2004 02:39 AM


All times are GMT +1. The time now is 12:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.