Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
BobW
 
Posts: n/a
Default search and replace macro genius?

I wonder if some cyber-macro genius out there has figured out a super macro
that can be used for sweeping multiple cobwebs out of Word documents in one
pass, such as, but not limited to pesky things like:

1. make sure all apostrophes are curly, not straight, in any font.
2. transform all (TM) or TM into superscript TM, in any font
3. transform all (R) to superscript registered symbol, in any font
4. protect onlyl the first instance of every (R) and (TM) on every page of a
..doc
5. abbreviate U.S. (not US) wherever it precedes the word Government or the
name of a government organization (e.g. U.S. Army, etc.)
6. Initial Cap the first word in every bullet
7. Don't Initial Cap every word in a bullet
8. Remove periods from bullets unless they are complete sentences.
9. Use one space between sentences.
10. Change all "web site" into "website"
11. Change all degree symbols from text copied from emails (where they serve
as spaces) into actual spaces; then remove all double spaces.

....and so forth....the purpose being to automate the processing of documents
within a tech pubs work group to make them automatically conform to
departmental usage standards.

I have found one ancieint shareware utility (Search n Replace, by Thomas A
Lundin, downloadable from he http://www.delphi32.com/vcl/4559/)...but
it's going to take a master's degree in searchnreplaceology to figure out how
to make it do complicated things like I'm proposing. However, I have played
with it a bit, and it can simultaneously process hundreds of search/replace
strings in one document pass, like greased lightning...virtually
instantly...so fast that you at first don't think the program actually RAN!
When you look into the file and realize everything got fixed instantly, it's
astonishing!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default search and replace macro genius?

For a start, just running AutoFormat will do some of what you ask (1-3), but
note that you need to check apostrophes and quotes carefully to make sure
they're not backward, as replacement is not perfect. Also note that
replacing two spaces with one will get the nonbreaking spaces as well as the
regular ones--no need to replace them first.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"BobW" wrote in message
...
I wonder if some cyber-macro genius out there has figured out a super

macro
that can be used for sweeping multiple cobwebs out of Word documents in

one
pass, such as, but not limited to pesky things like:

1. make sure all apostrophes are curly, not straight, in any font.
2. transform all (TM) or TM into superscript TM, in any font
3. transform all (R) to superscript registered symbol, in any font
4. protect onlyl the first instance of every (R) and (TM) on every page of

a
.doc
5. abbreviate U.S. (not US) wherever it precedes the word Government or

the
name of a government organization (e.g. U.S. Army, etc.)
6. Initial Cap the first word in every bullet
7. Don't Initial Cap every word in a bullet
8. Remove periods from bullets unless they are complete sentences.
9. Use one space between sentences.
10. Change all "web site" into "website"
11. Change all degree symbols from text copied from emails (where they

serve
as spaces) into actual spaces; then remove all double spaces.

...and so forth....the purpose being to automate the processing of

documents
within a tech pubs work group to make them automatically conform to
departmental usage standards.

I have found one ancieint shareware utility (Search n Replace, by Thomas A
Lundin, downloadable from he http://www.delphi32.com/vcl/4559/)...but
it's going to take a master's degree in searchnreplaceology to figure out

how
to make it do complicated things like I'm proposing. However, I have

played
with it a bit, and it can simultaneously process hundreds of

search/replace
strings in one document pass, like greased lightning...virtually
instantly...so fast that you at first don't think the program actually

RAN!
When you look into the file and realize everything got fixed instantly,

it's
astonishing!


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega macro with find and replace (HELP!) DKM Microsoft Word Help 1 May 10th 05 06:15 PM
Search and Replace not working if I select a Format for Heading St Sherrie Deen Microsoft Word Help 0 April 27th 05 08:53 PM
Search and replace problem Jan Kronsell New Users 7 March 30th 05 09:57 AM
search and replace symbol characters Patricia G. Kurz Microsoft Word Help 1 December 29th 04 03:11 AM
search and replace symbols pattyjo Microsoft Word Help 2 December 29th 04 03:10 AM


All times are GMT +1. The time now is 03:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"