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

Re: Convert footnotes to ordinary text by Shauna

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



Re: Convert footnotes to ordinary text by Fredrik

Fredrik
Sat Sep 08 02:50:20 CDT 2007

Not only did it get me started, it worked like a charm right out of
the box. Thanks a lot!



Re: Convert footnotes to ordinary text by Shauna

Shauna
Sat Sep 08 07:37:21 CDT 2007

Hi Fredrik

I'm glad it worked. Thanks for letting us know.

Shauna

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word


"Fredrik" <fenilsen@gmail.com> wrote in message
news:1189237820.057648.187400@o80g2000hse.googlegroups.com...
> Not only did it get me started, it worked like a charm right out of
> the box. Thanks a lot!
>
>