automatic hyperlink of index entries and bookmarks in word

G

Garett

Obviously, when you create an index in word, entries should be automatically
hyperliked - clicking on the index page would take you directly to that
location within the electronic document. My document has and index. When I
mark new entries and update, I want those to become hyperlinks as described.

Too logical to not be possible. Anybody?
 
J

Jonathan West

Garett said:
Obviously, when you create an index in word, entries should be
automatically
hyperliked - clicking on the index page would take you directly to that
location within the electronic document. My document has and index. When
I
mark new entries and update, I want those to become hyperlinks as
described.

Too logical to not be possible. Anybody?

It might be obvious that Word ought to work that way, but it doesn't. The
reason is that the page naumbers are derived not from bookmarks but from XE
fields, and that the XE controls the contents of the entries in a way that
is rather more subtle than the TOC manages.

It's quite possible to write a macro that does the following

- checks if the selection is within an Index field
- If so, checks if the selection is a page number
- If so, works out characteristics of the XE field that generated that line
of the index
- Finds the first matching XE field on the relevant page
- Jumps to that location.

How hard it is would depend on how robust you want it to be in coping with
all the variations in how an Index can be formatted. If you need it only for
your own purposes and have a specific layout you always follow, then it is
quite a bit easier.
 
H

Helmut Weber

Hi Garett,
if you need a professional solution,
not just something that works every now and then,
it seems that this might be the right place to look for:
Quote:
Steve Hudson - Word Heretic
"Want a hyperlinked index? S/W R&D? See WordHeretic.com"
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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