View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default macro to find, select and format

You don't need a macro for this, unless you expect to repeat it in many
different documents.

Create a new paragraph style and assign to it whatever formatting (including
the indent) you want to apply. Then you can use the Replace dialog to find
the specific text, replace it with the same text (place just the code ^&
in the Replace With box, or click More Special Find What Text) and apply
the style (with the cursor still in the Find What box, click More Format
Style and choose the new style). Then click the Replace All button, and
you're done.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

takakaw wrote:
I'm having trouble with creating a macro that will do the following:

1. find "specific text"
2. select "specific text" and entire susequent paragraph
3. format that selected paragraph
4. indent 1"
5. find & format all in a document

I thought working through a find/replace under edit would do it, but
I can't get it to work.

Thanks in advance!