Bonjour,
Je dirais un truc du genre (même s'il doit y avoir plus propre).
Attention, tu avais mixé plusieurs structures.
La cellule A2 est soit :
range("A" & lig)
cells(lig, "A") ou cells(lig, 1)
Tu avais mis range("A", lig)
Private Sub CommandButton1_Click()
Dim dLig As Long
Dim Lig As Long
Application.ScreenUpdating = False
dLig = Range("A" & Rows.Count).End(xlUp).Row
For Lig = 2 To dLig
If Range("A" & Lig).Value <> Range("A" & Lig + 1).Value Then
Range("C1").Offset(WorksheetFunction.CountA(Range("C:C"), 0)).Value = Range("A" & Lig).Value
End If
Next Lig
End Sub