Re-bonjour,
Le fichier n'étant pas organisé exactement comme la version que j'avais mise en exemple la super macro de Nad ne fonctionnait plus, il m'en a ait une autre que je vous met ici :
Option Base 1
Sub Trier()
' Macro enregistrée le 28/05/2006 par CBernardT
Dim Lig As Long, i As Long, j As Long, k As Byte, n As Long, X As Byte
Application.ScreenUpdating = False
Lig = Range("A65536").End(xlUp).Row
For i = 3 To Lig
For n = 3 To Lig
If Cells(n, 1) = Cells(i, 1) Then
X = X + 1
End If
Next n
If X > 1 Then
For j = i + 1 To Lig
If Cells(j, 1) = Cells(i, 1) Then
For k = 2 To 25
If Cells(j, k) <> "" Then
Cells(i, k) = Cells(j, k)
Range(Cells(j + 1, 1), Cells(Lig + 1, 25)).Copy Cells(j, 1)
End If
Next k
End If
Next j
End If
X = 0
Next i
Application.ScreenUpdating = True
End Sub
Elle fonctionne bien sauf lorsque deux informations sont sur la même ligne, une des deux saute et n'est plus copiée.
Quelqu'un voit-il une solution?
Je vous joint le fichier, cette fois-ci bien conforme à mon fichier original !
Merci à Nad !