2

I have a MS Word document with 100+ footnotes. I want to bring them into the text (where the superscript number currently is) spanned by a <ref></ref> tag so I can place the document on a wiki. How do I do this?

0

2 Answers 2

1

I ended up going with a macro:

Sub AddFnTextInBodyOfDoc()
Dim f As Footnote
Dim r As Range

For Each f In ActiveDocument.Footnotes
Set r = f.Reference
r.Collapse wdCollapseEnd
r.InsertAfter "<ref>" & f.Range.Text & "</ref>"

Next f
End Sub
0

You still need to delete each footnote reference number.

f.Reference.Delete
1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jan 24, 2023 at 17:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .