C
cfulmer
I'm writing a macro to do some word->HTML conversion. For part of this
I need to be able to loop through the footnotes, grab the referenc
numbers and insert them elsewhere in the text of the document.
I've tried two things: selecting the reference from the Footnot
object and then cutting-and-pasting into the body:
ActiveDocument.Footnotes(1).Reference.Select
Selection.Copy
. . .
Selection.Paste
This creates another footnote. Not what I want.
I've also tried just grabbing the text of the reference:
myRefNum$ = ActiveDocument.Footnotes(1).Reference.Text
But, for some reason, this always gives me garbage (it comes out as
box...)
Any ideas?
The other thing I should mention is that there are different styles o
footnotes in the documents and at least one numbering restart, so
can't just go by the Footnote.Index.
Thx
I need to be able to loop through the footnotes, grab the referenc
numbers and insert them elsewhere in the text of the document.
I've tried two things: selecting the reference from the Footnot
object and then cutting-and-pasting into the body:
ActiveDocument.Footnotes(1).Reference.Select
Selection.Copy
. . .
Selection.Paste
This creates another footnote. Not what I want.
I've also tried just grabbing the text of the reference:
myRefNum$ = ActiveDocument.Footnotes(1).Reference.Text
But, for some reason, this always gives me garbage (it comes out as
box...)
Any ideas?
The other thing I should mention is that there are different styles o
footnotes in the documents and at least one numbering restart, so
can't just go by the Footnote.Index.
Thx