![]() |
|
#2
|
||||
|
||||
|
You could use a macro like:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "00R"
.Replacement.Text = ""
.Forward = True
.Format = True
.Style = "Total Points and Test Version"
.Wrap = wdFindStop
.MatchWholeWord = True
.MatchWildcards = False
.Execute
End With
Do While .Find.Found
i = i + 1
.Text = Format(i, "000")
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
MsgBox i & " instances updated."
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro/Replace
|
Summytyme | Word | 4 | 03-31-2017 11:22 AM |
| Need Macro to Replace Text | rsrasc | Word VBA | 2 | 11-10-2014 06:26 PM |
Find and Replace Macro
|
amparete13 | PowerPoint | 3 | 03-11-2014 05:29 AM |
| 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 |