How do I get a TOC to include hidden text Word 2000 and Windows XP



  • 1. Find/ replace multi-line segments?
    Hey, I'm using Word 2007 on WinXP, and I was wondering if there's any way to use the "Replace word" feature to change multi-line blocks of text quickly and easily. And, if there's no way to do that with Replace, is there another method I could try? What I'm looking to do is something like this. Let's say we have this block of text: > Pico > Pico > Pico > Fermi > Pico > Pico > Fermi > Fermi I need to insert the word "Porkchop", as a separate line, in between each occurence of "Pico(linebreak)Fermi", so we arrive at something like this: > Pico > Pico > Pico > Porkchop > Fermi > Pico > Pico > Porkchop > Fermi > Fermi Doing it by hand is right out, as I'm dealing with something like 3,000 lines here (and each file needs to be given three or four different revisions) so any suggestions would be appreciated. Thanks! -- JButkus
  • 2. Manage Styles window query
    Word 2007 under windows XP I'm just getting around to looking at features in the new Word version. I've happened onto the Manage Styles window, which has 4 tabs. My question is: What does the Set Defaults tab pertain to? I've opened a document in a template I use, with Times New Roman @ 13. So far so good. When I happened into the Set Defaults tab, it shows TMR @ 10 points. I simply cancelled out of it, but am wondering what its relationship is to the style of the open document--or others. Has anyone puzzled this out? Many thanks. Tjom
  • 3. Word2007 - How to split screen
    Word 2007 I want to split the screen on the document I'm editing. I go to the View ribbon tab. I look at the Windows section. It shows a grey Remove Split. There is no "split" icon. The Help indicates there should be a split icon. Where is icon to split view? Thank you for your help.
  • 4. Envelop Fonts Problem
    I am using W XP and Word 2003. When I print individual envelopes I change the font and the font size. Yet I am unable to save these choices for my next usage. How do I accomplish this? Thanks for any and all help.
  • 5. Can I Insert a date that will automatically update when opened to 1 MONTH FROM CURRENT DATE?
    Hello, I know I can write a standard letter and insert the date so that everytime I open the letter it will automatically update to the current date. My question is, can I do the above BUT configure it so that when I open the letter it will automatically update to a date that is one month ahead of the current date? Thank you!

How do I get a TOC to include hidden text Word 2000 and Windows XP

Postby bmV3Ymll » Fri, 17 Nov 2006 05:48:02 GMT

I would like to have a TOC to include my hidden text for review purposes.  
Word 97 and 2000 using Windows 2000 all I had to do was check the hidden text 
box.  Have upgraded to Windows XP and now I can't get it to work the same.  
Can I use VBA to work around this?  I have created the TOC a macro via a 
button on a toolbar, Insert -Index and Tables both give the same result.

Re: How do I get a TOC to include hidden text Word 2000 and Windows XP

Postby Stefan Blom » Fri, 17 Nov 2006 18:12:04 GMT

Try this: Format the text as white, then set "Field shading" to
"Always" in Tools | Options, View tab. White text will show up against
the grey background of the TOC field (but it won't print, of course).

Stefan Blom
Microsoft Word MVP

Similar Threads:

1.How do I include hidden text in TOC?

I am designing an SRS document in which there will be two versions printed - 
one with low-level requirements included, the other with those requirements 
removed.  I decided that creating a Format in which I can mark certain text 
as hidden would be the way to go, as I could choose whether or not I included 
the hidden text when I print the document.

One catch, though, the Table of Contents does not seem to include hidden 
text.  Is there a way to include hidden text in the TOC?


2.Getting hidden text to appear in TOC

Has anyone tried to get hidden text to appear in their 
TOC or Table of Figures?  If so, how did you accomplish 
it.  Whenever I try the hidden text is idnored.

3.Help: String search in Windows 2000 doesn't find text in Windows XP: MS Word document


	I am using Perl 5 (I believe both machines are using ActivePERL 5) on 
two machines with the same data files.  One machine is Win 2000 the 
other is Win XP.  The files are MS Word 2000 documents e-mailed 
(manually) from the Win 2000 machine to the XP machine.

	The program searches the MS Word Files (both created with MS Word 2000) 
for the word HYPERLINK.  The format for the HYPERLINK that I am 
searching for in the document is:

HYPERLINK "mydoc.doc"

(I checked this on the XP machine in Notepad and it is OK.)

PROBLEM: 	The program works on the Windows 2000 machine, but does not 
find the files on the Win Xp machine.

	The code that is not finding the text on the Win XP machine (same as 
the Win 2000 machine which does find the test)is:

-----------  start actual code segment --------------------
	while (/HYPERLINK(\s+.{1,80}?\.doc)/gim)  #  the "g" causes multiple 

		  $fndxx = $1;

		  $fndxx =~ s/\"//;   # remove leading quote
		  $fndxx =~ s/\s+//;   # remove leading spaces
		  $fullname = ($dir . $fndxx);
		  $date_string = "Cannot Find";
		  if (-e $fullname) { $date_string = ctime(stat($dir . 
$fndxx)->mtime); }     #last update date of that file
		  print(OUTFILE  $fndxx,",",$date_string,", in: ",basename($file), 
"\n")  ;
		  $matches += 1;  # count matches
	}	#end while HYPERLINK
-----------  end actual code segment --------------------

The output for a found HYPERLINK should look like this (it does on the 
Win 2000 machine):

mydoc.doc,(date of last update), in: otherdoc.doc

On Win XP, the program cannot even find the word HYPERLINK (if I modify 
the code to just search for that).  The directories are valid, I can 
have the program print a list of all files as it processes them.

If I try this with a test program (the string to test is in the program 
itself ) it works fine on the XP machine.

There are no encryption issues, nor any file or directory problems.

I would really appreciate any comments or suggestions about what I am 
doing wrong.


Barry Millman


4.Help: String search in Windows 2000 doesn't find text in Windows XP: MS Word document

Purl Gurl wrote:
> Purl Gurl wrote:

Isn't talking to yourself the first sign?

> I have looked over Word Perfect and MS Word but not RTF formats, on a
> 9.x machine, a 2K machine and an XP machine.

Somewhat irrelevant because the OP wrote " The files are MS Word 2000
documents e-mailed (manually) from the Win 2000 machine to the XP

<half-baked story about WordPerfect deleted>

> A hex editor will display plaintext format, if in a binary file. I use
> Hex Workshop v. 2.2x for this. Very old program but works with
> excellence. You could simply open your Word document with a
> hex editor, then search for http: from there.

Pay attention Kira, the OP already wrote "I looked at both the MS Word
and RTF files with the XVI32 Hex editor. They both showed the same hex
values for the string  HYPERLINK."

Its so sad to see an old rusty V8 that's only running on three

5.Word 2007 TOC includes all body text when including Level 4


I've outlined a technical document and I've used up to level 4 when 
outlining headings and topics.

I've checked in the Outlining view that I've only included exactly what I 
need up to level 4 and anything else (including blank lines etc) are set as 
body text.

If I insert the TOC and include to level 3 everything is fine, the table 
displays just fine. If I then remove the table and insert a new one 
specifying that I wish to include down to level 4 the TOC inserts ALL body 
text in the document into the table.

Like I said, I've switched to outlining view and gone through the entire doc 
to make sure I've got it neat. I've filtered by level 4 and it shows exactly 
what I'm after in the TOC, expect when I actually add a TOC to level 4 it 
completely ignores my input and stuffs all the text classed as "body text" 
into it.

Kinda frustrating me as there seems to be nothing wrong with my outlining.


6. Speech to Text using MS Word 2000 and Windows XP Home

7. text of a doc created in Windows 2000 is grey when opened in XP

8. Hiding/Including Sections of Text, Word 2007

Return to MS WORD


Who is online

Users browsing this forum: No registered users and 41 guest