none
Hyperlinked index in Word 2010? RRS feed

  • Question

  • Hello,

    Does anyone have a fix for the apparent inability of Word 2010 to produce a hyperlinked index?  All of the nonsense about manually setting bookmarks is not acceptable since I have hundreds of index entries and all that apparently gets wiped out when the index is regenerated.  If there is no fix yet, is there some other document processing tool that does support this and that a Word document could easily be converted to?

    Thanks,
    Ray

    Wednesday, August 14, 2013 7:29 PM

Answers

  • Hi Ray

    I received the following email not too long ago that might provide a solution for you. Or you can try coding your own, but it's a lot of work. The research I did on the topic that Jack mentions only scratches the surface of all the variations he's apparently delved into

    Hi, Cindy.

    Some time ago you were kind enough to answer my inquiries about some articles you wrote that had to do with hyperlinking index entries in Microsoft Word.

    I've since created a program to do just that. If you're interested, you'll find the details here:

    http://www.editorium.com/IndexLinker.htm

    Thanks!

    Best wishes,

    Jack Lyon

    The Editorium

    http://www.editorium.com


    Cindy Meister, VSTO/Word MVP, my blog

    Wednesday, August 21, 2013 11:01 AM
    Moderator
  • Hi Ray

    I've sent Jack a link to this thread...


    Cindy Meister, VSTO/Word MVP, my blog

    Thursday, August 22, 2013 4:47 PM
    Moderator

All replies

  • Hi Ray

    I received the following email not too long ago that might provide a solution for you. Or you can try coding your own, but it's a lot of work. The research I did on the topic that Jack mentions only scratches the surface of all the variations he's apparently delved into

    Hi, Cindy.

    Some time ago you were kind enough to answer my inquiries about some articles you wrote that had to do with hyperlinking index entries in Microsoft Word.

    I've since created a program to do just that. If you're interested, you'll find the details here:

    http://www.editorium.com/IndexLinker.htm

    Thanks!

    Best wishes,

    Jack Lyon

    The Editorium

    http://www.editorium.com


    Cindy Meister, VSTO/Word MVP, my blog

    Wednesday, August 21, 2013 11:01 AM
    Moderator
  • Hi Cindy,

    Thanks for the reference.  I also just found out about this macro from another reader of this forum, but this reader claims that it contains a significant bug in that it places the hyperlink within the XE code, and when this happens closing and reopening the file causes Word to strip all of the bookmarks that were generated by macro, leaving dead hyperlinks all over the index.  I haven't yet tried it myself, however.

    Ray

    Thursday, August 22, 2013 4:35 PM
  • Hi Ray

    I've sent Jack a link to this thread...


    Cindy Meister, VSTO/Word MVP, my blog

    Thursday, August 22, 2013 4:47 PM
    Moderator
  • Hi Ray

    Jack has taken a look at this and he believes the problem the other forum reader ran into came from updating  the index field.

    Whenever you update a Word field, such as the Index, a TOC or a cross-reference, any editing that was done to the field is lost - Word overwrites it. Since the Hyperlinks added by the tool are edits to the field result, the hyperlinks disappear when the Index is updated, leaving the bookmarks behind.

    Jack says that he's added an "Unlink" feature to the tool so that the Index cannot be updated accidentally. He's also included information about fields and updating in the tool documentation. He says, if you do perform an update on an Index, thus losing the links, all you need to do is run the tool again to create a new set of links.

    FWIW I don't think you'd want to do this too often, as Word tends to rebel if a document contains too many bookmarks. You'd want to leave hyperlinking the index as a last step in document production...

    Note for the sake of discussion, since this is a developer forum: my original premise for "hyperlinking" an index based on using an event, such as WindowBeforeDoubleClick or WindowSelectionChange to "find" the index term dynamically. That approach wouldn't run into this problem, but is probably more complex to implement.


    Cindy Meister, VSTO/Word MVP, my blog

    Friday, August 23, 2013 4:14 PM
    Moderator
  • No, I've run into the exact issue using this tool.  I did the following:

    1. Open document

    2. Run IndexLinker

    3. Spot check the entries which were hyperlinked

    4. Save and close document

    5. Reopen document

    6. Attempt to click any hyperlink in the index and find out that it does nothing.

    7. Open the bookmarks window and observe that every single one of the IDXMRK bookmarks created by IndexLinker are no longer in the document.

    The hyperlinks are still in the index, none of the bookmarks are there.

    When I did this same test, but saved the document in Word 97 format, the hyperlinks in the index as well as the bookmarks were retained following a save, close, and reopen.  BUT, attempting to utilize the Word 97 document, which kept the hyperlinks and bookmarks, in a eReader such as Kindle or Nook, all of the hyperlinks placed by IndexLinker threw errors and were unrecognizable.  Any hyperlinks I placed manually in the document, were always retained by every Word version and were usable in eReaders.  The only difference between the manual ones I created and the ones IndexLinker was creating was that my bookmark as placed on actual text within the document and the hyperlink created to against that.  The bookmark placed by IndexLinker was inside the XE field, which caused the bookmark to get stripped while leaving the hyperlink to a dead location.  With the Word 97 format, that retained the bookmarks, you were telling the eReaders to move to a location that was hidden and inaccessible in the document, since XE marks are hidden within these readers.  I then reproduced this precisely by manually placing a bookmark inside an XE entry.  Word stripped my bookmark, placed inside the XE field, and left the hyperlink in the index behind to a dead location.

    The fix to the problem is completely trivial, simply moving the cursor 1 position to either the left or right before placing the bookmark so that the bookmark is created in the visible text.  Tracking it down and isolating the bug took several days of effort.


    Mike Hotek mhotek@mssqlserver.com
    SQL Server 2012: Data Design and Retrieval
    ChampionValleyPress.com



    • Edited by Michael Hotek Tuesday, August 27, 2013 12:15 PM grammar correction
    Friday, August 23, 2013 10:56 PM
  • I also found that when you have created an index entry from a bookmark, IndexLinker does not use your existing bookmark for the hyperlink.  Instead, it creates its own and hyperlinks that to the first number in the page range.  Since the XE entries are placed by Word where the bookmark terminates, IndexLinker effectively hyperlinks the first page number in the index of the page range to the last page, making that hyperlink useless.  When I submitted the bugs via Editorium's e-mail link, all I got was bounced e-mail.

    Mike Hotek mhotek@mssqlserver.com
    SQL Server 2012: Data Design and Retrieval
    ChampionValleyPress.com

    Friday, August 23, 2013 11:00 PM
  • Hi Michael

    The person who created IndexLinker thanks you very much for your feedback and providing the detailed information about the problems. He says he's fixed the product so that these issues should no longer occur and that it can be downloaded at http://www.editorium.com/ftp/IndexLinker.zip

    He doesn't mention the bouncing email, so I don't know whether that's been fixed...


    Cindy Meister, VSTO/Word MVP, my blog

    Tuesday, August 27, 2013 5:39 AM
    Moderator
  • It's worth looking at IndeXExploit at www.indexbase.co.uk under IndeXExploit.

    This Word add-in uses embedded index entries to create a picklist. This is then used to find indexed content. It works for any embedded index entry, it doesn't have to reference a bookmarked range.

    Monday, April 9, 2018 12:11 PM