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 / November 2004

Tip: Looking for answers? Try searching our database.

automatic hyperlink of index entries and bookmarks in word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Garett - 31 Oct 2004 22:51 GMT
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?
Jonathan West - 01 Nov 2004 12:05 GMT
> Obviously, when you create an index in word, entries should be
> automatically
[quoted text clipped - 5 lines]
>
> 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.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Helmut Weber - 01 Nov 2004 12:26 GMT
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/
Garett - 01 Nov 2004 20:54 GMT
Thank you gentlemen for your replies. Greetings to Bavaria, Germany!

> Hi Garett,
> if you need a professional solution,
[quoted text clipped - 9 lines]
> Word XP, Win 98
> http://word.mvps.org/
 
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.