1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Private Function ReplaceStringComputer()
ActiveDocument.Select
With Selection.Find
.Style = ActiveDocument.Styles("computer")
.Text = ""
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Forward = True
.Wrap = wdFindContinue
Do While .Execute
With Selection
.MoveEnd Unit:=wdCharacter, Count:=-1
.Find.Text = "^13"
.Find.Replacement.Text = "^11^11"
.Find.Execute Replace:=wdReplaceAll
End With
Loop
End With
End Function |
Partager