Sub gauche()
Range("AC2" ).Select
Range("AB2:AB15" ).ClearContents
Do While UCase(ActiveCell) <> ""
cpt = 0
Do While UCase(Range("AB2" ).Offset(cpt, 0)) <> "" And UCase(Range("AB2" ).Offset(cpt, 0)) <> UCase(ActiveCell)
cpt = cpt + 1
Loop
If Range("AB2" ).Offset(cpt, 0) = "" Then
Range("AB2" ).Offset(cpt, 0) = Left(ActiveCell, 2)
End If
Selection.Offset(1, 0).Select
Loop
End Sub |