Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2023, 08:55 AM
negeise negeise is offline Using a cross-reference with caption that has slashes Windows 10 Using a cross-reference with caption that has slashes Office 2016
Novice
Using a cross-reference with caption that has slashes
 
Join Date: Dec 2023
Posts: 1
negeise is on a distinguished road
Default Using a cross-reference with caption that has slashes

I have a document that is using cross referencing for some tables and images with captions. Some of the captions have slashes in them that seem to be causing issues when I place the cross reference in the text. I do not have the ability to share the document but I'll give some examples.

Caption1:
text here Figure 1: Then more text.

Caption2:


text//text//text Figure 1: Then more text.

In the text I would like to just see "Figure 1". I insert the cross reference as a "figure" with "Only label and number" selected and link it to Caption1 listed above and the cross reference shows as "text here Figure 1". I right click and select "Edit Field" then click "Field Codes". In the "Field Codes:" box, I update the default of "REF _ref1234567" to read "REF _ref1234567 \h \#Figure##" and select "OK". The cross reference in the text now reads "Figure 1" just like I want.

On Caption2, I perform the same steps but the cross reference in the text does not change, it still reads as "text//text//text Figure 1"

Is there a way for me to tell Word to ignore the slashes and show only "Figure 1" like the captions without slashes in them?
Reply With Quote
  #2  
Old 12-12-2023, 01:53 PM
Guessed's Avatar
Guessed Guessed is offline Using a cross-reference with caption that has slashes Windows 10 Using a cross-reference with caption that has slashes Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Select the text in the caption that you want to see in the cross reference. Add a bookmark at that selection (lets assume you call that bookmark negeise).

Now at the place where you want a cross-reference, add a Ref field with the following code
{REF negeise \h}
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
bookmarks, field codes, ref



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross reference a table caption below a repeated mapped content control z|co Word 1 10-23-2021 02:38 AM
Using a cross-reference with caption that has slashes Insert a cross-reference in a caption RomFigo Word 9 09-25-2015 12:32 AM
Using a cross-reference with caption that has slashes Caption-Cross-reference-TOF Problems sleake Word 10 12-18-2013 12:56 PM
Using a cross-reference with caption that has slashes Word 2007 Caption/Cross-reference problem yeatsbaby Word 9 04-10-2012 03:16 PM
Using a cross-reference with caption that has slashes How to control the caption and their Cross-reference? Jamal NUMAN Word 1 04-10-2011 03:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:13 AM.


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