Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Malcolm Patterson Malcolm Patterson is offline
external usenet poster
 
Posts: 9
Default Macro to swap words in a comma-separated list

Given a sentence like the following:

Someone is watching every Tom, Harry, and Dick as they pass the storefront.

How can I use a wildcard search to find

Harry, and Dick

and replace it with

Dick, and Harry

This happens often enough that I want to record a macro.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Paul B[_5_] Paul B[_5_] is offline
external usenet poster
 
Posts: 50
Default Macro to swap words in a comma-separated list

On Wed, 27 May 2009 13:56:01 -0700, Malcolm Patterson wrote:

Given a sentence like the following:

Someone is watching every Tom, Harry, and Dick as they pass the storefront.

How can I use a wildcard search to find

Harry, and Dick

and replace it with

Dick, and Harry

This happens often enough that I want to record a macro.



Find: (Harry)(, and )(Dick)

Replace: \3\2\1

p.
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
how do i add a comma after each line on a long list of words? Kartik Microsoft Word Help 3 April 24th 23 08:47 AM
Word 2002 SP3 not printing range or comma separated page values Ben A C Smith Microsoft Word Help 6 November 29th 05 03:57 PM
How do I keep two words separated by a / together on same line. Bob Austen Microsoft Word Help 1 November 9th 05 07:20 PM
How do I sort a list of words separated by comas? reannie Microsoft Word Help 4 May 18th 05 04:14 AM
How do I sort a single comma separated list? ge575 Microsoft Word Help 1 February 13th 05 09:54 PM


All times are GMT +1. The time now is 03:02 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"