Sub Mise_à_jour()
ScreenUpdating = False
Dim F1 As String
Dim F2 As String
F1 = Sheets("Saisie").Name
F2 = Sheets("Gantt").Name
Call Effacement
li = Sheets(F1).Cells(36000, 1).End(xlUp).Row
ligne = Sheets(F2).Cells(36000, 2).End(xlUp).Row + 1
For i = 4 To li
For col = 4 To 11
If Sheets(F2).Cells(1, col) >= Sheets(F1).Cells(i, 11) And Sheets(F2).Cells(1, col) <= Sheets(F1).Cells(i, 12) Then 'And Sheets(F2).Cells(1 & col) <= Sheets(F1).Cells(i & 12)
Sheets(F1).Cells(i, 1).Copy Destination:=Sheets(F2).Cells(ligne, col)
Sheets(F2).Cells(ligne, 1) = Sheets(F1).Cells(i, 1)
Sheets(F2).Cells(ligne, 2) = Sheets(F1).Cells(i, 2)
Sheets(F2).Cells(ligne, 3) = Sheets(F1).Cells(i, 3)
Sheets(F2).Cells(ligne, 12) = Sheets(F1).Cells(i, 8)
End If
Next col
ligne = ligne + 1
Next i
End Sub