Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2016, 07:25 AM
spunkygirl1983 spunkygirl1983 is offline Formatting text after cross references Windows 7 64bit Formatting text after cross references Office 2010 64bit
Novice
Formatting text after cross references
 
Join Date: Mar 2016
Location: Ohio
Posts: 1
spunkygirl1983 is on a distinguished road
Post Formatting text after cross references

I am trying to do a find and replace in Word that has cross references in the string.

I need to find Clause 1.1 (Definitions) and replace with Clause 1.1 (%%%Definitions%%%) so I can find the %%%Definitions%%% and format the word Definitions as needed.



I can do the 1.1 if it has not be references as Clause ([0-9]{1,}).([0-9]{1,}) \((*)\) and the replace it with Clause \1.\2 (%%%\3%%%) however if it has already been cross referenced that will not work.

I have search trying to find a wildcard that will work with the cross references and have found nothing yet. I do a lot of documents where the clause name either has to be bolded or italicized and I would like to be able to run a find and replace or even a macro to do this for me and my coworkers.

Thank you in advance for anyone help.
Reply With Quote
  #2  
Old 03-18-2016, 03:42 PM
macropod's Avatar
macropod macropod is offline Formatting text after cross references Windows 7 64bit Formatting text after cross references Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The problem with what you are trying to do is that cross-references are fields and, if you change the 'Definitions' part of the cross-reference, those changes will be lost immediately anything causes the cross-reference field to update (e.g. a print preview or printing the document). Furthermore, you can't use Find/Replace to add/delete content to the field's result.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert manual cross references in footnotes to other footnotes to automatic cross references ghumdinger Word VBA 7 11-20-2014 11:47 PM
Formatting text after cross references Globally changing formatting of in-text cross references estube Word 1 07-08-2014 03:21 AM
Formatting text after cross references Changing text in cross-references Richard B Word 3 09-11-2013 07:18 AM
Formatting Cross-References in Word 2010 mpdsal Word 5 12-05-2012 04:16 PM
Formatting Cross References TrevorS Word 0 02-27-2010 08:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:50 PM.


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