I'm sorry for making thinks complicated and bothering for you. I didn't notice that I must have accidentally selected the wrong OS.
Is there still a way to get this kind of macro for mac? Or is there a variable I can use in the code below instead of "hello"? I found this code by gmayor on another thread.
Code:
Sub Hyperlink2Footnote()
Dim oRng As Range
Dim strText As String
Dim lngIndex As Long
Set oRng = ActiveDocument.Range
lngIndex = 1
With oRng.Find
While .Execute(FindText:="hello", _
MatchWildcards:=True, _
ReplaceWith:="\1")
ActiveDocument.Footnotes.Add oRng, CStr(lngIndex), oRng.Text
lngIndex = lngIndex + 1
oRng.Text = vbNullString
oRng.Collapse 0
Wend
End With
lbl_Exit:
Set oRng = Nothing
Exit Sub
End Sub
Thanks a lot!