View Single Post
 
Old 02-11-2017, 10:49 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Maybe something like
Code:
Sub Foot_EndNotesToText()
Dim oFNote As Footnote
Dim oENote As EndNote
Dim iRef As Integer
Dim sRef As String
Dim orng As Range
    For Each oFNote In ActiveDocument.Footnotes
        With oFNote
            iRef = .Index
            sRef = .Range.Text
            Set orng = .Reference
            .Delete
            orng.Text = "(reference " & iRef & ") (" & sRef & ")"
        End With
    Next oFNote
    For Each oENote In ActiveDocument.Endnotes
        With oENote
            iRef = .Index
            sRef = .Range.Text
            Set orng = .Reference
            .Delete
            orng.Text = "(reference " & iRef & ") (" & sRef & ")"
        End With
    Next oENote
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote