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.

Re: Differentiating ToC hyperlinks? by Denise

Denise
Sat Jul 05 16:21:07 CDT 2003

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.

>-----Original Message-----
>G'day aba@dialogika.de (Andreas Baus),
>
>its name.
>
>
> aba@dialogika.de (Andreas Baus) was spinning this yarn:
>
>>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.
>
>Steve Hudson
>
>Word Heretic, Sydney, Australia
>Tricky stuff with Word or words for you.
>Email: word_heretic@yahoo.com.au
>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.
>.
>

Re: Differentiating ToC hyperlinks? by Word

Word
Sat Jul 05 18:39:30 CDT 2003

G'day "Denise Z" <dzivolich@cox.net>,

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


"Denise Z" <dzivolich@cox.net> was spinning this yarn:

>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.
>
>>-----Original Message-----
>>G'day aba@dialogika.de (Andreas Baus),
>>
>>its name.
>>
>>
>> aba@dialogika.de (Andreas Baus) was spinning this yarn:
>>
>>>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.
>>
>>Steve Hudson
>>
>>Word Heretic, Sydney, Australia
>>Tricky stuff with Word or words for you.
>>Email: word_heretic@yahoo.com.au
>>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.
>>.
>>

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: word_heretic@yahoo.com.au
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.