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 26
| Sub remplacement()
Dim MaPlage As Range
With Application.ReplaceFormat.Font
.ColorIndex = 3
.FontStyle = "Bold"
End With
Set MaPlage = Columns("E:F")
MaPlage.Replace What:="PVA", Replacement:=[N1], LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
MaPlage.Replace What:="KSC", Replacement:=[M1], LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
MaPlage.Replace What:="RTE", Replacement:=[O1], LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
MaPlage.Replace What:="KMT", Replacement:=[P1], LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
End Sub |
Partager