Pasted Text Is Not Hidden in TA, TC, or XE Field

ID: Q114744

6.00 6.00a 6.00c WINDOWS kbusage

The information in this article applies to:

SYMPTOMS

Information you paste from the Clipboard into a TA (table of authorities), TC (table of contents), or XE (index entry) field may not be hidden like the rest of the field.

If you type additional text after the pasted text, this text is hidden.

Applying Hidden font formatting to the pasted text causes the table of contents to have hidden TOC levels.

CAUSE

This problem occurs when you use the following procedure:

1. Position your insertion point immediately following the TC field name. 2. Turn the Smart Cut And Paste feature on. 3. Paste text into the field.

When you have the Smart Cut And Paste Feature selected, Word in most cases automatically inserts a space before pasted information. It is the inserted space that causes the pasted text to be unhidden. (To locate the Use Smart Cut And Paste option, choose Options from the Tools menu and select the Edit tab.)

Exception: With this feature selected, Word will NOT insert a preceding space (and therefore will not cause the pasted text to be unhidden) if the Clipboard text is inserted directly after one of the following characters:

   Open smart double quote
   Open smart single quote
   Space
   Right parenthesis
   Right square bracket

Note: The character preceding the insertion point may vary when you manually insert a TC, TA, or XE field. This is caused by the current states of the Smart Quotes feature and Show/Hide All Nonprinting Characters feature.

STATUS

Microsoft has confirmed this to be a problem in Word versions 6.0, 6.0a and 6.0c for Windows. This problem was corrected in Word version 7.0 for Windows 95.

WORKAROUNDS

Method 1: Use the following steps to disable Use Smart Cut And Paste:

          a. From the Tools menu, choose Options.
          b. Select the Edit tab.
          c. Clear the Use Smart Cut And Paste check box and choose OK.

Method 2: If you want to leave the Use Smart Cut And Paste option on, make
          sure before you paste into a hidden field that the insertion
          point is preceded by a space (or one of the other characters
          listed in the "Cause" section above).

MORE INFORMATION

For an example of a macro that avoids this problem while automating the insertion of a TC field, query on the following words in the Microsoft Knowledge Base:

   designate and text and macro

KBCategory: kbusage KBSubcategory: kbfield Additional reference words: 6.00 6.00a winword record word6 6.00c intellisense
Keywords          : kbfield 
Version           : 6.00 6.00a 6.00c
Platform          : WINDOWS

Last Reviewed: February 6, 1998