Sub Test2()
Sheets("Feuil1").Range("B13:IV13").Clear
Dim Colonne(), NumClient As Range, i As Long, [COLOR="Red"]x As Variant, cel As Range[/COLOR]
Colonne = Array("C", "D", "E", "AB", "AC", "AH", "AI", "AW", "AX", "BA", "BB", "BC") 'Colonnes obligatoires en bleu
With Sheets("BDD")
For Each NumClient In .Range("A2", .[A65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
[COLOR="Red"]For i = 0 To 11
x = .Range(Colonne(i) & NumClient.Row)
If i And i < 7 And x = .Range("C" & NumClient.Row) And x <> "" Then
i = 6
For Each cel In Sheets("Feuil1").Range("B13", Sheets("Feuil1").Range("IV13").End(xlToLeft))
If cel.Value Like "*" & NumClient.Row Then cel.Clear
Next
GoTo 1
End If
If x = "" Then _
[COLOR="Black"]Sheets("Feuil1").Range("IV13").End(xlToLeft).Offset(0, 1).Value = .Range(Colonne(i) & NumClient.Row).Address(REF_ABS, REF_ABS)[/COLOR]
If .Range("B" & NumClient.Row) = "D" Then Exit For 'ou peut-être : If InStr(.Range("B" & NumClient.Row), "D") Then Exit For
1 Next[/COLOR]
Next
End With
End Sub