T
Telesphore
This Code does not work:
*********************************************************
Sub ReplaceNumbers0To9()
Dim vFindText As Variant
Dim vReplText As Variant
Dim sFindText As String
Dim sReplText As String
Dim i As Long
vFindText = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "V/",
"R/")
vReplText = Array("", "", "", "", "", "", "", "", "", "", "", "")
For i = LBound(vFindText) To UBound(vFindText)
sFindText = vFindText(i)
sReplText = vReplText(i)
With Selection.Find
.Forward = True
.Wrap = wdFindContinue
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Format = True
.MatchCase = False
.Text = sFindText
.Replacement.Text = sReplText
.Execute Replace:=wdReplaceAll
End With
Next i
End Sub
********************************************
Thank you
*********************************************************
Sub ReplaceNumbers0To9()
Dim vFindText As Variant
Dim vReplText As Variant
Dim sFindText As String
Dim sReplText As String
Dim i As Long
vFindText = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "V/",
"R/")
vReplText = Array("", "", "", "", "", "", "", "", "", "", "", "")
For i = LBound(vFindText) To UBound(vFindText)
sFindText = vFindText(i)
sReplText = vReplText(i)
With Selection.Find
.Forward = True
.Wrap = wdFindContinue
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Format = True
.MatchCase = False
.Text = sFindText
.Replacement.Text = sReplText
.Execute Replace:=wdReplaceAll
End With
Next i
End Sub
********************************************
Thank you