![]() |
#1
|
|||
|
|||
![]() I am trying to make a hyperlink that contains some static text and a cross-reference to a heading. For example, assume that I have the following heading: 2.1 Theory I would then like to make a link to that heading that displays "chapter 2.1". Obviously I want to the number to automatically update when it is changed to 2.2. I kind of succeeded by making two seperate fields: Code:
{ HYPERLINK \l "Theory" } { REF _ref111 \r \h } Something like this would be nice, but I don't get it to work Code:
{"chapter" { REF _ref111 \r } \h } Thanks. |
#2
|
||||
|
||||
![]()
Is there a reason for using hyperlinks instead of cross-references? heading numbers in cross-references are dynamic; in hyperlinks they're static.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thanks for replying.
I actually already use cross-references to refer to a heading. The number "2.1" is currently dynamic. My point is that I want to combine this dynamic number with some static text (while preserving the dynamic nature of the number) so that it becomes "chapter 2.1". Hence "chapter" should be clickable too, that's why I used the word hyperlink. |
#4
|
||||
|
||||
![]()
No, Word cross-references don't support that. Although you could use a hyperlink and have 'chapter' as part of the display text, hyperlink references are, as I said, static. So, even though the hyperlink would continue to work, the display text reference wouldn't update.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Ok, thanks.
My workarond now is to first type "chapter", then to create a dynamic cross-reference while not inserting it as a hyperlink, and to subsequently create a hyperlink on top of both using the standard method. This keeps the cross-ref updated. |
#6
|
|||
|
|||
![]()
It is now the latter half of 2019... Is there any better solution to this yet? Specifically, I would like to add one cross-reference (NOT a hyperlink), that displays as follows:
Chapter 3. Getting started on page 3.19 The chapter number, name, and page number should be dynamic, and it would be great if the static text could be also so that it's one long clickable link, easy to search and replace to update. I can do this manually by inserting: Chapter { REF _Ref21501329 \r \h }. { REF _Ref21501618 \h} on page { PAGEREF _Ref21501725 \h } However, it would be soooo much better/faster/easier if I could insert ONE cross reference and skip the drama of adding multiple cross-ref fields and manually typing the text each time. Just hoping there's been progress... Thanks! |
#7
|
|||
|
|||
![]() Quote:
This has not changed, AFAIK. Fields are an old technology in Word and have not changed much since the 90s. If it is truly important to you, you might be able to talk Greg Maxey, Paul Edstein, Lene Fredborg or Graham Mayor into writing an Add-In for this. Doing so is beyond my abilities. I am not saying they would volunteer to do this without compensation. I do not know that there is a great demand for this capability. |
#8
|
|||
|
|||
![]()
Thanks, Charles Kenyon! :-) A person can hope... (I miss FrameMaker)
|
![]() |
Tags |
cross-reference, field code, hyperlink |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
markmichel64 | Word VBA | 5 | 01-30-2015 01:41 AM |
cross reference hyperlinks to text box | nothing_kills | Word | 4 | 11-25-2013 09:21 AM |
![]() |
wmac | Word | 1 | 05-14-2013 08:54 PM |
Changing Cross Reference Text | dhoggan | Word | 5 | 03-05-2013 05:22 PM |
![]() |
smed | Word | 3 | 01-14-2011 03:34 PM |