Differentiating ToC hyperlinks?

A

Andreas Baus

When I retrieve the 'Hyperlinks' collection from a document, this
collection also contains any hyperlinks that might be automatically
generated as part of a ToC in the document. Now, since I'd like to
handle ToC entries seperately from "ordinary" hyperlinks in the main
body of the document, I'd like to know if there is a simple way to
differentiate between a ToC link and a non-ToC link.

Thanks in advance.
 
D

Denise Z

To cut down on time, etc., you can also try ignorning the
range that contains the TofC (i.e., just select the ranges
other than the TofC) to generate your collection. Then,
if you want the TofC, use its range to generate the
collection.
 
W

Word Heretic

G'day "Denise Z" <[email protected]>,

the only problem with this is it increases the code complexity
needlessly - ESPECIALLY when you account for multiple ToCs.


Denise Z said:
To cut down on time, etc., you can also try ignorning the
range that contains the TofC (i.e., just select the ranges
other than the TofC) to generate your collection. Then,
if you want the TofC, use its range to generate the
collection.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

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