Getting a Footnote reference

A

Andrew Savikas

Hello

Anyone know how to get the text of a footnote's reference? I had hoped the the Text property of the Reference property would work, but no luck. According to the documentation, the Reference property returns a Range object, but I'm not getting anything useful from the Text property. I tried

Asc(fnote.Reference.Text) and just got "2" (Start of text character

I even tried Reference.ListFormat.ListString, but no dice there either

Thanks
Andrew Savika
 
P

Peter Hewett

Hi Andrew Savikas

Try this:
ActiveDocument.Footnotes(1).Range.Text

This returns the Footnote reference text, rather that the reference number.

HTH + Cheers - Peter
 
A

Andrew Savikas

Hi Peter

Thanks, but I don't want the footnote's text, I want the number. (Well, I *do* want the text, but I also want the number.)

I could use the Index property of the Reference property, but that wouldn't be accurate if the user isn't using standard numbering, or if the numbering doesn't start at 1 in the document

What I'm trying to do is programatically generate a table of footnotes: column one being the reference (or the paragraph it's in, *including* the reference -- getting the paragraph isn't hard, it's that pesky reference), and column two being the footnote text

Thanks
Andrew Savika

----- Peter Hewett wrote: ----

Hi Andrew Savika

Try this
ActiveDocument.Footnotes(1).Range.Tex

This returns the Footnote reference text, rather that the reference number

HTH + Cheers - Pete
 
K

Klaus Linke

Hi Andrew,

I fear you have to figure it out from the FootnoteOptions (.NumberStyle,
..StartingNumber), and the footnote index.

:-( Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top