Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2006

Tip: Looking for answers? Try searching our database.

Getting the REF number from a SEQ field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 05 Dec 2006 22:00 GMT
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.
macropod - 05 Dec 2006 22:50 GMT
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

Signature

macropod
[MVP - Microsoft Word]

> 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:
[quoted text clipped - 5 lines]
> It's the only way I can tie together various things relating to a
> figure. Thanks.
Chris - 05 Dec 2006 23:25 GMT
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,
>
[quoted text clipped - 4 lines]
> macropod
> [MVP - Microsoft Word]
macropod - 06 Dec 2006 00:00 GMT
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

Signature

macropod
[MVP - Microsoft Word]

> 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
[quoted text clipped - 10 lines]
> > macropod
> > [MVP - Microsoft Word]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.