re
Alors là franchement j'y comprend rien avec ton fichier ça bug avec la macro copier du mien qui ne bug pas
Tu dois avoir une propriété du fichier qui gène c'est pas possible mais je vois pas
Modifies la macro comme ceci ça a marché sur ton fichier (un peu plus long mais bon tu auras le résultat)
Sub ordre1()
Dim MonTableauSource As Variant
Dim MonTableauSource2
Dim MonTableauCible()
Dim MaLigne As Long
Dim x As Long, y As Long, z As Long, i As Byte
Dim verif As Boolean
MaLigne = Worksheets('Ordre1').Range('A65536').End(xlUp).Row
MonTableauSource = Sheets('Ordre1').Range('A1
' & MaLigne)
MaLigne = Worksheets('Ordre0').Range('A65536').End(xlUp).Row
z = 0
MonTableauSource2 = Worksheets('ordre0').Range('A1
' & MaLigne)
For x = 1 To UBound(MonTableauSource)
verif = False
For y = 1 To UBound(MonTableauSource2)
If MonTableauSource(x, 1) = MonTableauSource2(y, 1) Then
If MonTableauSource(x, 4) = MonTableauSource2(y, 4) Then
If MonTableauSource(x, 8) = MonTableauSource2(y, 8) Then
If MonTableauSource(x, 10) = MonTableauSource2(y, 10) Then
If MonTableauSource(x, 12) = MonTableauSource2(y, 12) Then
verif = True
Exit For
End If
End If
End If
End If
End If
Next y
If verif = False Then
z = z + 1
ReDim Preserve MonTableauCible(1 To 16, 1 To z)
For i = 1 To 16
MonTableauCible(i, z) = MonTableauSource(x, i)
Next
End If
Next x
For x = 1 To 16
For y = 1 To z
Worksheets('1').Cells(y, x) = MonTableauCible(x, y)
Next
Next
End Sub