--
Stefan Blom
Microsoft Word MVP
"Bridgett" <Brid...@discussions.microsoft.com> wrote in message
news:9D380870-FF28-4227...@microsoft.com...
Sub FRWithSequentialNumber()
Dim findText As String
Dim startNum As String
Dim myRange As Range
Set myRange = ActiveDocument.Range
startNum = 1
findText = "******"
With myRange.Find
.Text = findText
.MatchWholeWord = True
While .Execute
myRange.Text = Format(startNum, "0000")
If startNum = 1 Then
startNum = startNum + 4
Else
startNum = startNum + 5
End If
myRange.Collapse direction:=wdCollapseEnd
Wend
End With
End Sub
I think I may now have to update the add-in on that page to allow for such
number sequencing :(
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
"Bridgett" <Brid...@discussions.microsoft.com> wrote in message
news:9D380870-FF28-4227...@microsoft.com...
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
"Graham Mayor" <gma...@REMOVETHISmvps.org> wrote in message
news:ezKwtXPv...@TK2MSFTNGP05.phx.gbl...