It's a basic Wiki.
It allows intra-page links (implimented as #labels), and I want to
convert ToC and index links.
I have a feeling I'm missing the point here, but...
a. a ToC only really contains references to text if "use hyperlinks" was
specified when it was created, in which case you may be able to follow the
reference in the HYPERLINK fields, which should point to (hidden) bookmarks.
Otherwise, there are no references - except maybe page numbers - to
anything - there's just a copy of the entries (headings, TC entries) used to
generate the ToC and a such as a page number
b.an Index field also only references page numbers - it doesn't have
pointers to the individual { XE } fields.
Peter Jamieson
> It's a basic Wiki.
>
> It allows intra-page links (implimented as #labels), and I want to
> convert ToC and index links.
richardchaven - 16 Feb 2006 20:43 GMT
I've already done ToC; I'm looking for the Insert | Reference |
Cross-references. I want to be able to detect them in a Range and to
figure out what they refer to.
Cheers
Peter Jamieson - 19 Feb 2006 15:57 GMT
They are generally references to (hidden) bookmarks, aren't they?
Peter Jamieson
> I've already done ToC; I'm looking for the Insert | Reference |
> Cross-references. I want to be able to detect them in a Range and to
> figure out what they refer to.
>
> Cheers
richardchaven - 23 Feb 2006 19:05 GMT
That's it!
I had to do a bit of dancing around because they are Fields that
reference the bookmark, and while either the code ({ REF _R2343243}) or
the result ("Heading 1") appears as text, _both_ are in the Range (so
the character count does not equal the range length).
Thanks !