Sub ParenthesisToFootnote1()
Application.ScreenUpdating = False
Set MyRange = Selection.Range
again:
MyRange.Select
Selection.Find.ClearFormatting
Selection.Find.Style = "רגיל"
If Selection.Find.Execute(FindText:="\(*\)", MatchWildcards:=True, Wrap:=wdFindStop) = True Then
strt = 2: lent = Len(Selection.text)
re:
For i = strt To lent
If Mid(Selection.text, i, 1) = Chr(40) Then
Selection.Extend Character:=Chr(41)
strt = i + 1: lent = Len(Selection.text)
GoTo re
End If
Next
mRange = Right(Selection.text, (Len(Selection.text) - 1))
Selection.Delete
ActiveDocument.Footnotes.Add Range:=Selection.Range, Reference:="", text:=Left(mRange, (Len(mRange) - 1)) & "."
If Selection.Previous.text = " " Then Selection.Delete Unit:=wdCharacter, Count:=-1
GoTo again
End If
Application.ScreenUpdating = True
End Sub