Converting in-text citations to footnotes/endnotes

Hi there,

Actually there is a way to convert In-Text citations to endnotes/footnotes, by employing the following Word Macro.  Please note that this Macro was originally written by Shyam Ranganathan, though I’ve improved it a bit…  It’s not perfect, so do check the results and make the necessary touch-ups (i.e. in cases of citations directly following quotations), but overall, it does SAVE A LOT OF TIME…
Enjoy :slight_smile:

Miriam

======================== 

Sub intext2footnote()
Dim vLastSectionI, vField, i, J
J = ActiveDocument.Sections.Count
For i = 1 To ActiveDocument.Sections.Count
If i = J Then Exit Sub
Set myRange = ActiveDocument.Sections(i).Range
For Each vField In myRange.Fields
Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:= _
“ADDIN”
Selection.Find.ClearFormatting
With Selection.Find
.Text = “{ }”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Cut
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:=“temp”
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
ActiveDocument.Endnotes.Add Range:=Selection.Range, Reference:=""
Selection.Paste
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:=“1”
Selection.Find.ClearFormatting
With Selection.Find
.Text = “{ }”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.GoTo What:=wdGoToBookmark, Name:=“temp”
Selection.Find.ClearFormatting
With Selection.Find
.Text = “{ }”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.ClearFormatting
With Selection.Find
.Text = “{ }”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
ActiveDocument.Bookmarks(“temp”).Delete
With ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.MoveRight Unit:=wdCharacter, Count:=1
Next vField
Next i
End Sub