Microsoft KB Archive/79334

{|
 * width="100%"|

EditClear Statement Deletes Footnote Reference or Field Code

 * }

Q79334

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

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: &quot;REC&quot; 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: &quot;REC&quot; 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.