Sub SupprimeWE()
Dim L%
[P1] = Year([B7]) ' Met à jour l'année pour le calcul des jours fériés.
Application.ScreenUpdating = False
For L = 7 To Range("B65500").End(xlUp).Row
Select Case Weekday(Cells(L, "B"), vbMonday)
Case 6:
Cells(L, "B") = Cells(L, "B") - 1
Case 7: Cells(L, "B") = Cells(L, "B") - 2
End Select
If Application.CountIf([Férié], Cells(L, "B")) > 0 Then
Cells(L, "B") = Application.Index([Remplacé], Application.Match(Cells(L, "B"), [Férié], 0))
End If
Next L
End Sub