Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Word / July 2006



Tip: Looking for answers? Try searching our database.

Macro to find names in [ ] and change to bold

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dgulley@tmgdesigngroup.com - 27 Jul 2006 20:55 GMT
I have been using a Macro in WordPerfict to find city names inside [ ]
and change them to bold.  I'm trying to reproduce this in MSWord 2004.
I could use a little help.  doug58
Elliott Roper - 27 Jul 2006 23:45 GMT
> I have been using a Macro in WordPerfict to find city names inside [ ]
> and change them to bold.  I'm trying to reproduce this in MSWord 2004.
> I could use a little help.  doug58

You don' need no steenkin' macros.
Find and replace with a little fancy footwork should do the job as long
as there are no other instances of [....]
Replace with style set to "strong" - a built-in character style that's
bold.
In more detail...
Find and replace with wildcards on.
Your search string should be /[(*)\]
Your replace string is \1, but you gotta add format > style.. to the
replace nonsense and choose "strong" from the list of styles you get
offered.

Explanation: [ needs a \ in front to tell Word you mean [ literally (it
has a meaning as a wildcard, and the \ disambiguates that)
* means any string of characters. The ( ) round the * makes the string
into a unit for replace. It is the first such unit, so that's what the
\1 in the replace field is for.

PS. I *did* test this, and it works.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.