Does this work? Make sure you test the result after pasting into your rich text editor
Code:
Sub Macro2()
With Selection.Find
.Text = ""
.Replacement.Text = ""
.ClearFormatting
.Style = ActiveDocument.Styles("Endnote Reference")
.Replacement.ClearFormatting
.Replacement.Font.Superscript = True
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With
End Sub