View Single Post
 
Old 08-03-2017, 08:24 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

Not tested in the Mac version, but try
Code:
  Sub Macro1()
  Dim oRng As Range
  Dim strText As String
  Dim i As Long
      Set oRng = ActiveDocument.Range
      i = 1
      With oRng.Find
          Do While .Execute(FindText:=" {", _
                            MatchWildcards:=False)
              oRng.MoveEndUntil Chr(46)
              If oRng.Characters.Last = "}" Then
                  oRng.End = oRng.End + 1
                  ActiveDocument.Footnotes.Add oRng, CStr(i), oRng.Text
                  oRng.Text = ""
                  i = i + 1
              End If
              oRng.Collapse 0
          Loop
      End With
  lbl_Exit:
      Set oRng = Nothing
      Exit Sub
  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