Sub CopierFinValeursDifférentes()
Dim CelA As Range, CelFin As Range
For Each CelA In Feuil1.[A1:A30]
Set CelFin = CelA.Offset(, 1)
If CelFin.Value = "" Then
CelFin.Value = CelA.Value
ElseIf CelA.Value <> "" Then
Set CelFin = CelA.End(xlToRight)
If CelFin.Value <> CelA.Value Then CelFin.Offset(, 1).Value = CelA.Value
End If
Next CelA