macro to find, select and format

T

takakaw

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!
 
J

Jay Freedman

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
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top