Sub paragraphfinder()
Dim docReport As Document
Dim docFootnotes As Document
Set docReport = Documents("Document1")
Set docFootnotes = Documents("Document2")
If docReport.Footnotes.Count <> docFootnotes.paragraphs.Count Then
MsgBox "There is a problem. The report has " & docReport.Footnotes.Count & " blanks, but the footnote list has " & docFootnotes.paragraphs.Count & " paragraphs. These should match."
Exit Sub
End If
For x = 1 To docFootnotes.paragraphs.Count
FootText = docFootnotes.paragraphs(x).Range.Text
FootText = Left(FootText, Len(FootText) - 1)
docReport.Footnotes(x).Range.Text = FootText
Next
MsgBox "Done"
End Sub>
2. Replace "Document1" with the displayed name of the report (as shown on the title bar of Word), and "Document2" with the displayed name of the footnote file. Note that these names should still have quotes around them.Sub InsertFootnoteContents()
InputFile = "C:\blahblahblah\footnotes.txt"
notemax = ActiveDocument.Footnotes.Count
Open InputFile For Input As #1
noteindex = 1
Do While Not EOF(1)
Line Input #1, thisfootnote
ActiveDocument.Footnotes(noteindex).Range.Text = thisfootnote
If noteindex > notemax Then
MsgBox "Oops! There are " & notemax & " endnotes in this document, but more than that in " & InputFile & "."
Exit Do
End If
noteindex = noteindex + 1
Loop
Close #1
MsgBox "Done"
End SubYou are not logged in, either login or create an account to post comments
Sub FOOTNOTESCAN() ' ' FOOTNOTESCAN Macro ' Macro recorded 5/6/2009 by ' 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.Execute Selection.Delete Unit:=wdCharacter, Count:=1 ActiveDocument.Footnotes.Add Range:=Selection.Range, Reference:="" If ActiveWindow.ActivePane.View.Type = wdPrintView Or ActiveWindow. _ ActivePane.View.Type = wdWebView Or ActiveWindow.ActivePane.View.Type = _ wdPrintPreview Then ActiveWindow.View.SeekView = wdSeekMainDocument Else ActiveWindow.Panes(2).Close End If End SubAs for c), it's not as pretty, but what I'd do is convert the footnotes to endnotes (Insert > Footnote > Options > Convert > Convert Footnotes to Endnotes), paste a big chunk of footnote paragraphs into the first footnote, and start highlighting/moving text to the right ones.posted by cowbellemoo at 6:35 AM on May 6