Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
macro to find, select and format
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! |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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! |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select text in macro | New Users | |||
Macros:How to select a specific column of a table and format it using macro? | Tables | |||
How do I write a macro to find, select, and then delete a Section. | Microsoft Word Help | |||
Select Tool in Macro ?? | New Users | |||
How do I turn select text on and use Find to select a block of te. | Microsoft Word Help |