Shauna
Fri Sep 07 08:54:14 CDT 2007
Hi Fredrik
The following should get you started:
Sub ReplaceFootnotesWithTheirText()
Dim nCounter As Long
Dim fn As Word.Footnote
Dim rngFN As Word.Range
For nCounter = ActiveDocument.Footnotes.Count To 1 Step -1
'Get a reference to our footnote
Set fn = ActiveDocument.Footnotes(nCounter)
'Work out where to copy the text
Set rngFN = fn.Reference
rngFN.Collapse wdCollapseEnd
'Copy the text of the footnote into the body of the document
rngFN.FormattedText = fn.Range.FormattedText
'Delete the footnote
fn.Delete
Next nCounter
End Sub
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
"Fredrik E. Nilsen" <fenilsen.nospam@chello.no> wrote in message
news:7tj2e3lfjk98tkm1479hlbjs60qn0vejg8@4ax.com...
> Hello,
>
> I have a large document with several hundred footnotes. I'm looking
> for a code to replace the footnote reference with the actual footnote
> text. Any ideas on where to start?
>
> --
> Fredrik E. Nilsen