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 reference numbers and
insert them elsewhere in the text of the document. I need some help because
it just isn't working how I think it should.
I've tried two things:
(1) selecting the reference from the Footnote 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.
(2) I've also tried just grabbing the text of the reference:
myRefNum$ = ActiveDocument.Footnotes(1).Reference.Text
But, for some reason, this gives me garbage (it comes out as a box).
Any ideas?
The other thing I should mention is that there are different styles of
footnotes in the documents and at least one numbering restart, so I can't
just go by the Footnote.Index.
Thx.
need to be able to loop through the footnotes, grab the reference numbers and
insert them elsewhere in the text of the document. I need some help because
it just isn't working how I think it should.
I've tried two things:
(1) selecting the reference from the Footnote 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.
(2) I've also tried just grabbing the text of the reference:
myRefNum$ = ActiveDocument.Footnotes(1).Reference.Text
But, for some reason, this gives me garbage (it comes out as a box).
Any ideas?
The other thing I should mention is that there are different styles of
footnotes in the documents and at least one numbering restart, so I can't
just go by the Footnote.Index.
Thx.