Getting the REF number from a SEQ field

C

Chris

For a cross-reference to a SEQ field (such as the one on a figure
caption) a REF field includes a long number, looking like this:

{ REF_Ref4018934786 \h }

But the SEQ field that this points to doesn't display that number. The
number must be in the document someplace, but how can I retrieve it?
It's the only way I can tie together various things relating to a
figure. Thanks.
 
M

macropod

Hi Chris,

The field ID numbers created by Word are arbitrary. I suspect that, like
floppy disk IDs, they're derived from the system date & time at the date &
time of creation.

Cheers
 
C

Chris

I realize the number is arbitrary, but it's unique and it appears to be
stable. That is, if I do two references to the same figure, the two REF
fields use the same number. If I save the document as HTML, the same
number appears in an <a> tag. So I'm trying to get this number, which
seems to be "contained" in the SEQ field.
Hi Chris,

The field ID numbers created by Word are arbitrary. I suspect that, like
floppy disk IDs, they're derived from the system date & time at the date &
time of creation.

macropod
[MVP - Microsoft Word]
 
M

macropod

Hi Chris,

The hidden bookmark you're referring to and, hence, the arbitrary number
associated with it, does not exist until the first REF field pointing to the
referenced item is created - thus the '_Ref' prefix to the number.

You can check this by creating a document with a series of captions, then
using Insert|Bookmark and checking 'hidden bookmarks'. You'll see no such
bookmark at this stage. If you save the document as a Web page, there'll
still be nothing with a '_Ref' prefix in the html file. If you now insert a
cross-reference to one of the fields, Word will create the bookmark and
you'll be able to see it via Alt-F9 or Insert|Bookmark - and in the html
file if you save again.

Cheers

--
macropod
[MVP - Microsoft Word]


Chris said:
I realize the number is arbitrary, but it's unique and it appears to be
stable. That is, if I do two references to the same figure, the two REF
fields use the same number. If I save the document as HTML, the same
number appears in an <a> tag. So I'm trying to get this number, which
seems to be "contained" in the SEQ field.
Hi Chris,

The field ID numbers created by Word are arbitrary. I suspect that, like
floppy disk IDs, they're derived from the system date & time at the date &
time of creation.

macropod
[MVP - Microsoft Word]
 

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