Microsoft Office Forums Add static text to cross-reference

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2016, 07:14 AM
tfa91 tfa91 is offline Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2013
Novice
Add static text to cross-reference
 
Join Date: Jan 2016
Posts: 5
tfa91 is on a distinguished road
Default Add static text to cross-reference

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 }
This does display as chapter 2.1, however I would prefer having just one reference.

Something like this would be nice, but I don't get it to work


Code:
{"chapter" { REF _ref111 \r } \h }
Any suggestions?

Thanks.
Reply With Quote
  #2  
Old 01-27-2016, 01:57 PM
macropod's Avatar
macropod macropod is offline Add static text to cross-reference Windows 7 64bit Add static text to cross-reference Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,675
macropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud of
Default

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
[MS MVP - Word]
Reply With Quote
  #3  
Old 01-27-2016, 02:10 PM
tfa91 tfa91 is offline Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2013
Novice
Add static text to cross-reference
 
Join Date: Jan 2016
Posts: 5
tfa91 is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 01-27-2016, 02:29 PM
macropod's Avatar
macropod macropod is offline Add static text to cross-reference Windows 7 64bit Add static text to cross-reference Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,675
macropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud of
Default

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
[MS MVP - Word]
Reply With Quote
  #5  
Old 01-27-2016, 02:49 PM
tfa91 tfa91 is offline Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2013
Novice
Add static text to cross-reference
 
Join Date: Jan 2016
Posts: 5
tfa91 is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 10-09-2019, 07:07 AM
Laura Schneider Laura Schneider is offline Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2016
Novice
 
Join Date: Oct 2019
Location: Minnesota
Posts: 2
Laura Schneider is on a distinguished road
Default

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!
Reply With Quote
  #7  
Old 10-09-2019, 07:13 AM
Charles Kenyon Charles Kenyon is online now Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,195
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Quote:
Originally Posted by Laura Schneider View Post
It is now the latter half of 2019... Is there any better solution to this yet? ***

Just hoping there's been progress...

Thanks!

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.
Reply With Quote
  #8  
Old 10-09-2019, 07:15 AM
Laura Schneider Laura Schneider is offline Add static text to cross-reference Windows 10 Add static text to cross-reference Office 2016
Novice
 
Join Date: Oct 2019
Location: Minnesota
Posts: 2
Laura Schneider is on a distinguished road
Default

Thanks, Charles Kenyon! :-) A person can hope... (I miss FrameMaker)
Reply With Quote
Reply

Tags
cross-reference, field code, hyperlink

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add static text to cross-reference Cross reference content control list with autotext or other text 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
Add static text to cross-reference Reference number and cross reference for equation numbers to match the thesis format wmac Word 1 05-14-2013 08:54 PM
Changing Cross Reference Text dhoggan Word 5 03-05-2013 05:22 PM
Add static text to cross-reference Cross-reference endnote text smed Word 3 01-14-2011 03:34 PM


All times are GMT -7. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft