Reply
 
Thread Tools Display Modes
  #1   Report Post  
TBSC
 
Posts: n/a
Default Troubleshooting endnotes in Word

The endnotes in my MS 2002 Word document are now out of order after deleting
one endnote and did not update. There appears to be a phantom reference in
the document where I deleted the old endnote and I can't delete it (there's
no reference number, just a blank window when I pass the cursor over this
location). I guess this is why the endnotes won't update. How do I update
this and get rid of the old reference?
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

Try the following macro on a copy of the document (or save it first)

' Macro created by Doug Robbins to re-insert Endnotes

Dim afnRange As Range, afntext As String, i As Integer

For i = 1 To ActiveDocument.Endnotes.Count

ActiveDocument.Endnotes(i).Reference.Select

Selection.Characters(1).Select

If Not Selection.Style = "Endnote Reference" Then

While Not Selection.Style = "Endnote Reference"

Selection.Collapse wdCollapseStart

Selection.MoveLeft wdCharacter

Selection.Characters(1).Select

Wend

Selection.Delete

End If

Set afnRange = ActiveDocument.Endnotes(i).Range

afntext = afnRange.Text

ActiveDocument.Endnotes(i).Delete

ActiveDocument.Endnotes.Add Range:=Selection.Range, Text:=afntext


Next i

It was originally written to re-insert footnotes and I just modified it for
endnotes, but have not tried it.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"TBSC" wrote in message
...
The endnotes in my MS 2002 Word document are now out of order after
deleting
one endnote and did not update. There appears to be a phantom reference
in
the document where I deleted the old endnote and I can't delete it
(there's
no reference number, just a blank window when I pass the cursor over this
location). I guess this is why the endnotes won't update. How do I
update
this and get rid of the old reference?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
WordPerfect keyboard macro>Word equivalent? Anty New Users 2 March 13th 05 06:23 PM
how to convert wordperfect 5.0 floppy files to word pcoelho Microsoft Word Help 2 February 17th 05 06:55 PM
Converted document from WordPerfect. New footnotes are not being. C Lowman Microsoft Word Help 1 January 26th 05 10:19 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM


All times are GMT +1. The time now is 10:14 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"