Private Sub Worksheet_Activate()
Dim i As Integer, j As Long, lig As Long
' Set sh = Sheets("Synthèse")
Range("A2:B1000").ClearContents
lig = Range("B" & Rows.Count).End(xlUp).Row + 1
For i = 1 To Sheets.Count
If Sheets(i).Name <> "Synthèse" Then
Range("A" & lig) = Sheets(i).Range("A1")
For j = 2 To Sheets(i).Range("D" & Rows.Count).End(xlUp).Row
If Sheets(i).Range("D" & j) = 1 Then
Range("B" & lig) = Sheets(i).Range("C" & j)
lig = lig + 1
End If
Next
lig = lig + 2
End If
Next
End Sub