Extracting Endnotes Number

F

fdde

Hi all,

I am required to get the number of an endnote and check if it is present in
the main document. To elaborate further, assuming I have something like:

3 For a historical description of the...
3 being the superscripted end note number that word automatically
assigns.

I will need to extract the text '3' out of the end note. When I copy and
paste any endnote, I get '[1]' instead of '3'. Also, when I just do a
msgbox(selection.text), I get a funny character instead of the endnote
number. Is there anyway, I can retreive the endnote number? After I
reetrieve it, I will have to check if it is present in the main document
which is fairly easy. It's the text extracting part that's eating my brain
(however limited!) away.

Hope someone can help me out.

Thanks & Regards,
Vince
 
F

fdde

Figured it out!

It goes MsgBox (Selection.Endnotes(1).Index) that way in the citation and
simply MsgBox (ActiveDocument.Endnotes(5).Index) in the endnote section!
vince
 

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