MarcusStringer
IS-IT--Management
Hi people,
I was wondering if you could help me or point me in the right direction?
I have a series of word files which were made from Quark, and it strips out the footnote linking.
It puts all the footnotes at the end of the Document (like Endnotes) and the number in the text is just a subscript number (with no link)
I've included the following macro which will do the first one just the way I want it to i.e.
Find the first footnote, cut it from the document, find the the first subscript number in the document then create a footnote and paste the old one I just cut into it.
I can't workout where to put the loop
Any help would be god send
Marcus
I was wondering if you could help me or point me in the right direction?
I have a series of word files which were made from Quark, and it strips out the footnote linking.
It puts all the footnotes at the end of the Document (like Endnotes) and the number in the text is just a subscript number (with no link)
I've included the following macro which will do the first one just the way I want it to i.e.
Find the first footnote, cut it from the document, find the the first subscript number in the document then create a footnote and paste the old one I just cut into it.
I can't workout where to put the loop
Code:
Sub ReLinkingFootNotes()
'
' ReLinkingFootNotes Macro
' Macro recorded 9/23/05 by marcus
'
Dim i As Integer
i = 1
Selection.HomeKey wdStory
With Selection.Find
Selection.Find.ClearFormatting
With Selection.Find
.Text = i & " ^t"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.Cut
Selection.Find.ClearFormatting
With Selection.Find.Font
.Superscript = True
With Selection.Find
.Text = "1"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
ActiveDocument.Footnotes.Add Range:=Selection.Range, Reference:=""
Selection.Paste
i = i + 1
End With
End With
End Sub
Any help would be god send
Marcus