Microsoft KB Archive/57414

Deleting Hidden Text Using RTF

PSS ID Number: Q57414 Article last modified on 03-07-1997

=
========================================================= 3.00 3.01 3.02 4.00 5.00 MACINTOSH kbusage kbappnote

= SUMMARY =

To delete all hidden text from a Microsoft Word document, follow these steps:

Word versions 4.0 and 3.0x

 * 1) If you are creating a table of contents or an index using Word codes, change all occurrences of .c. and .i. to any other unique character, such as @@@ or ###.
 * 2) Save the document in rich-text format (RTF) format.
 * 3) Change all occurrences of.
 * 4) Close this document and save changes when prompted.
 * 5) When you reopen the document and RTF is interpreted, the hidden text is removed.
 * 6) Globally change all instances of @@@ and ### back to .c. and .i., respectively.

Word version 5.0
In Word 5.0, the above procedure can be simplified by using the Replace function to search for character formats:


 * 1) First, the document must still be saved in RTF (Rich Text Format).
 * 2) From the Edit menu, choose Replace.
 * 3) Select Hidden. Click OK.
 * 4) Click Find Next to find an occurrence of Hidden Text or click Replace All to replace all occurrences of hidden text.

= MORE INFORMATION =

The RTF designation for hidden text is Each group of characters that is formatted as hidden is preceded with a

The RTF designation for a comment is, and when RTF is interpreted, the text following the comment is not written into the document.

The special codes for tables of contents and indexes, .c. and .i. respectively, are handled differently in the RTF format of Word 4.0 than they are in Word 3.02. To support table of contents and index entries in applications that do not use the .c. format, Word 4.0 formats the complete entry as a hidden string with special RTF formatting. If you replace the replacing the .c. or .i., the parts of the entry not hidden are deleted. In Word 3.02, this is not a consideration because the .c. or .i. codes are formatted in RTF in the same manner as other hidden characters.

For more information on RTF, see the application note titled “RTF File Format Specifications.” To obtain this application note call Microsoft Product Support Services at (206) 454-2030.

KBCategory: kbusage kbappnote KBSubcategory: Additional reference words: 3.00 4.00 5.00 macword macword5 ====================================================================== ============================================================================= Copyright Microsoft Corporation 1997.