Sub recap()
Epaisseur = [C2]
famille = [B2]
chef = [E2]
coul = [H2]
[A7:T65000].ClearContents
lig = 7
If Epaisseur = "" Then
For Each sh In Worksheets
If Left(sh.Name, 1) = "S" Then
With Sheets(sh.Name)
For k = 5 To .[A65000].End(3).Row
If .Cells(k, 9) = famille And .Cells(k, 3) = chef And .Cells(k, 16) = coul Then
Sheets("Extraction").Range("A" & lig & ":T" & lig).Value = .Range("A" & k & ":T" & k).Value
lig = lig + 1
End If
Next
End With
End If
Next
Exit Sub
End If
If famille = "" Then
For Each sh In Worksheets
If Left(sh.Name, 1) = "S" Then
With Sheets(sh.Name)
For k = 5 To .[A65000].End(3).Row
If .Cells(k, 10) = Epaisseur And .Cells(k, 3) = chef And .Cells(k, 16) = coul Then
Sheets("Extraction").Range("A" & lig & ":T" & lig).Value = .Range("A" & k & ":T" & k).Value
lig = lig + 1
End If
Next
End With
End If
Next
Exit Sub
End If
'tous
For Each sh In Worksheets
If Left(sh.Name, 1) = "S" Then
With Sheets(sh.Name)
For k = 5 To .[A65000].End(3).Row
If .Cells(k, 9) = famille And .Cells(k, 10) = Epaisseur And .Cells(k, 3) = chef And .Cells(k, 16) = coul Then
Sheets("Extraction").Range("A" & lig & ":T" & lig).Value = .Range("A" & k & ":T" & k).Value
lig = lig + 1
End If
Next
End With
End If
Next
End Sub