T
Trevor
Can this be done with a macro?
Can this be done at all without third-party software?
Can this be done at all without third-party software?
Trevor said:Can this be done with a macro?
Can this be done at all without third-party software?
Doug Robbins - Word MVP said:The following will replace endnotes with ordinary text at the end of the
document, retaining the endnote reference number in the text, but it can not
longer be clicked to go to the text note.
Doug Robbins - Word MVP said:The following will replace endnotes with ordinary text at the end of the document, retaining the endnote reference number in the
text, but it can not longer be clicked to go to the text note.
You could modify it to replace footnotes with ordinary text at the end of the document, but getting them at the foot of the page
on which they now appear would be very difficult to do strictly with code.
' Macro created 29/09/99 by Doug Robbins to replace endnotes with textnotes at end of document
' to replace the endnote reference in the body of the document with a superscript number.
'
Dim aendnote As Endnote
For Each aendnote In ActiveDocument.Endnotes
ActiveDocument.Range.InsertAfter vbCr & aendnote.Index & vbTab & aendnote.Range
aendnote.Reference.InsertBefore "a" & aendnote.Index & "a"
Next aendnote
For Each aendnote In ActiveDocument.Endnotes
aendnote.Reference.Delete
Next aendnote
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.Font
.Superscript = True
End With
With Selection.Find
.Text = "(a)([0-9]{1,})(a)"
.Replacement.Text = "\2"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
--
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
Trevor said:Can this be done with a macro?
Can this be done at all without third-party software?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.