#1
|
|||
|
|||
Need Short Macro-Find and Replace
Can the below code be summarized with a short code?
Thanks! PHP Code:
|
#2
|
||||
|
||||
Code:
Sub AnswerLetterChange() With ActiveDocument.Content.Find .ClearFormatting .Replacement.ClearFormatting .Forward = True .Wrap = wdFindContinue .Format = False .MatchWildcards = True .Text = "<([A-D]):" .Replacement.Text = "\1." .Execute Replace:=wdReplaceAll End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks! Working great!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and Replace Macro | amparete13 | PowerPoint | 3 | 03-11-2014 05:29 AM |
Is the following too complex for find/replace macro? | bertietheblue | Word VBA | 12 | 11-04-2013 05:35 PM |
Find - Replace Macro using a table list | mdw | Word | 0 | 08-01-2013 04:36 PM |
macro or find/replace | JamesVenhaus | Word | 2 | 02-27-2012 03:34 PM |
Find and Replace Macro - A Better Way | Tribos | Word VBA | 0 | 10-08-2008 03:22 AM |