Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2016, 06:19 AM
w0lfshad3 w0lfshad3 is offline trouble replacing mixed hidden and nonhidden text Windows 7 64bit trouble replacing mixed hidden and nonhidden text Office 2013
Novice
trouble replacing mixed hidden and nonhidden text
 
Join Date: May 2016
Posts: 10
w0lfshad3 is on a distinguished road
Default trouble replacing mixed hidden and nonhidden text


Hello,

I needed to mark certain text so I find it and replace it in the future differentiating it from other identical text who should not be replaced because it's in a different context

Also I needed the mark to not show up in the print

I solved this using a hidden "#" character before the word

I managed to learn to search and replace hidden characters here:
http://word.tips.net/T000151_Replacing_Hidden_Text.html

Problem arises that I apparently cannot search and replace text marked with a hidden "#" that looks like so: "#text" so that after it comes out "#replaced text", and only the "#" remains hidden

Instead I have to replace it with "#replaced text", then search for all normal "#" and replace it with hidden "#". Fortunately I don't think I have other "#" normal characters around...

Wondering if there's a way to make search and replace maintain hidden attribute just for the "#" character
Reply With Quote
  #2  
Old 05-01-2016, 02:23 PM
macropod's Avatar
macropod macropod is offline trouble replacing mixed hidden and nonhidden text Windows 7 64bit trouble replacing mixed hidden and nonhidden text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
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

A Find/Replace cannot specify different formats for parts of either the Find expression or the Replace expression, so you will need to continue with a two-step process.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing the 2nd or 3rd instance of Text wdillon2 Word VBA 2 05-13-2015 10:21 PM
trouble replacing mixed hidden and nonhidden text Problem replacing text. piritzo Word 2 06-22-2013 12:50 AM
trouble replacing mixed hidden and nonhidden text Help with replacing text with wildcards sbatson5 Word 2 04-13-2012 03:49 AM
trouble replacing mixed hidden and nonhidden text Hidden style applied over already-hidden text. christie Word 1 08-17-2011 09:10 AM
Replacing / editting text LisaC Word 0 02-25-2010 03:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:19 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