Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2019, 01:02 PM
emartin emartin is offline Select / replace all words containing a certain character Windows 7 64bit Select / replace all words containing a certain character Office 2010
Novice
Select / replace all words containing a certain character
 
Join Date: May 2019
Posts: 2
emartin is on a distinguished road
Default Select / replace all words containing a certain character

Hello,



I want to find all words containing "aw", I want the entire word selected then replaced with all caps. I'm having trouble with this. The answer will be able to accomplish this :

awake = AWAKE
craw = CRAW
jawline = JAWLINE

Thank you.
Reply With Quote
  #2  
Old 05-22-2019, 03:39 PM
macropod's Avatar
macropod macropod is offline Select / replace all words containing a certain character Windows 7 64bit Select / replace all words containing a certain character Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

You could do this with a wildcard Find/Replace, where:
Find = <*aw*>
Replace = ^&
and you set the replacement font characteristic to 'All Caps'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-22-2019, 04:28 PM
emartin emartin is offline Select / replace all words containing a certain character Windows 7 64bit Select / replace all words containing a certain character Office 2010
Novice
Select / replace all words containing a certain character
 
Join Date: May 2019
Posts: 2
emartin is on a distinguished road
Default

Thank you.

I thought it was something like that with asterisks and some sort of bracket. And while it's on the right track (and I think it should work), it's not working.

Tell me if this happens to you, please.

Here's what I'm doing.
(note : I tried this on two computers with Word 2010 and Word 2013)


New blank document.
"The man was awakened by something stuck in his craw along the jawline."
Find & Replace (accessed by ctrl+h)
Find what: <*aw*>
use wildcards
Replace with: ^&
all caps
Replace All

The result : "THE MAN WAS AWAKENED BY SOMETHING STUCK IN HIS CRAW ALONG THE JAWLINE."
Word has completed its search of the document and has made 3 replacements.

When I step-though the find-replace by pressing REPLACE instead of REPLACE ALL, I can see how Word thinks. When I start again fresh I see that Word selects and replaces these 3 :

"The man was awakened"
"by something stuck in his craw"
"along the jawline."

So Word found all 3 instances of "aw" in the words "awakened", "craw" and "jawline", but somehow selected more than the word itself. It selected all the characters from the leading position of it previous search to the end of the word containing "aw", and so in it's logic found 3 instances within the sentence.
Reply With Quote
  #4  
Old 05-22-2019, 05:32 PM
macropod's Avatar
macropod macropod is offline Select / replace all words containing a certain character Windows 7 64bit Select / replace all words containing a certain character Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

OK, you might need two wildcard Find expressions:
1. Find = [! ]@aw*>
2. Find = <aw*>
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
find & replace, select text

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select / replace all words containing a certain character Select rows w/cells containing given character strings, then sum cell in two other col. LarryHills Excel 1 02-17-2017 03:55 PM
Select / replace all words containing a certain character How to select different words at once FTL Word 5 03-08-2016 06:10 PM
Select / replace all words containing a certain character Replace a random character with the same character RickLegrand Word 7 07-23-2015 06:35 PM
Select / replace all words containing a certain character How can select from a specific character to another character mohsen.amiri Word 2 02-19-2015 11:38 PM
Select / replace all words containing a certain character Macro for select words? Megan Sprack Word 1 08-23-2012 03:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:09 PM.


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