hyperlink to text and not location in same document

D

d3

I am looking to set up a hyperlinks to headings within the same document. at
present it seems that links take you to the location where the text was when
you set the link up, rather than the text itself. the document is a live
document in that more content will be added to it and therefore the headings
will move. at present the links take you to where the heading was instead of
where it is.

how can i set up a link to a heading which changes location within a
document. i dont want it in a table of contents, i want text that references
other text to be able to take you to the text it referenmces.

any help appreciated,
david
 
J

Jezebel

Hyperlinks within a document take you to a bookmark. The bookmark is
inserted automatically by the Insert > Cross Reference function. You can see
the automatically-inserted bookmarks by checking the 'Hidden bookmarks'
checkbox on the bookmarks dialog: they're the ones comprising an underscore
and a random number. As long as the bookmark remains intact, the hyperlink
will still work as expected. The problem is that your editing may
inadvertently move one or other end of the bookmark range, eg by clicking at
the start of a heading, pressing enter, then adding a new heading and a heap
of text: the bookmark now spans the start of the new heading to the end of
the old. The hyperlink takes you to the start of this range.

There's really nothing you can do about this except validate your links
periodically. There's no way for Word to know if your modification to a
bookmark range is deliberate or not.
 
J

Jezebel

No and no. And temper your amazement. There's an obvious practical problem:
forget the programming part of it, just try to sketch out, conceptually,
what you're describing. Bookmarks are linked to locations: for most
purposes, those are reasonably constant as to content also. If they're not,
perhaps you should wait until your document is stable before you start
inserting your links.
 
J

Jezebel

From my understanding of the OP, he wants to link to "TEXT XYZ" and have the
bookmark resolve the target regardless of where that piece of text may be
located at the time (eg delete it from location one, insert it at location
two, and have Word work it out from there). Too bad if it gets inserted at
locations three and four also.
 

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