EditClear Statement Deletes Footnote Reference or Field Code

ID: Q79334

The information in this article applies to:

SYMPTOMS

If you position the insertion point to the left of a field code or footnote reference in Microsoft Word for Windows and you press the DEL key or run the EditClear macro, the field code or footnote reference is not deleted; instead, the system beeps. However, if you position the insertion point at the same location and run the EditClear statement from within a macro, the field code or footnote reference is selected and deleted.

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Word for Windows listed above. We are researching this problem, and will post more information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Pressing the DEL key is the keyboard equivalent to the EditClear command and macro statement; therefore, they should behave in a similar manner, regardless of how they are executed.

You can use the following macro to delete a footnote reference number:

   Sub Main
   EditClear
   End Sub

The EditClear command selects the word to the immediate right of the insertion point and performs a delete.

Steps to Reproduce Problem

1. Create or open a document that contains an automatically-numbered

   footnote.

2. Position the insertion point to the left of the footnote reference
   number. Press the DEL key. The system beeps, and the footnote
   reference number is not deleted.

To record and run a macro to execute the EditClear command, use the steps listed below.

Word for Windows Version 2.0

1. From the Tools menu, choose Record Macro. Type a name in the Macro

   Name box, and choose the OK button. Note: "REC" should appear on the
   right end of the status bar.

2. Press the DEL key.

3. From the Tools menu, choose Stop Recorder.

4. Position the insertion point to the left of the footnote reference

   number.

5. From the Tools menu, choose Macro. Select the macro recorded in
   steps 1-3 above, and choose the Run button.

Word for Windows Version 1.x

1. From the Macro menu, choose Record. Type a name in the Macro Name

   box, and choose the OK button. Note: "REC" should appear on the right
   end of the status bar.

2. Press the DEL key.

3. From the Macro menu, choose Stop Recorder.

4. Position the insertion point to the left of the footnote reference

   number.

5. From the Macro menu, choose Run. Select the macro recorded in steps
   1-3 above, and choose the OK button.

REFERENCES

"Microsoft Word for Windows User's Reference," version 1.x, pages 127-128, 185-187, 284-285

"Microsoft Word for Windows User's Guide," version 2.0, pages 264-265, 591-592, 765-767

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: winword2 6.0 6.0a 6.0c winword word6 1.x 2.x

Version           : 1.x 2.x 6.0 6.0a 6.0c
Platform          : WINDOWS

Last Reviewed: July 30, 1997