For Each F In Worksheets
If F.Name <> "DONNEES" And F.Name <> "BIENVENUE" And F.Name <> "CONGÉS" And F.Name <> "RECAPITULATIF" And F.Name <> "FICHE INFOS CONTRAT" And F.Name <> "CALCULS" Then
' Vos opérations
With F
DL = .Cells(39, "B").Row
.Range("B9:N39").ClearContents
Formule = "=SI(OU($A9=0;$A9="""");"""";INDEX(DONNEES!$F$37:$R$43;JOURSEM($A9;2);COLONNE()-1))"
.Range(.Cells(9, "B"), .Cells(DL, "N")).FormulaLocal = Formule
.Range(.Cells(9, "B"), .Cells(DL, "N")) = .Range(.Cells(9, "B"), .Cells(DL, "N")).Value
End With
For L = 9 To 39 ' Efface si jour chomé.
MaDate = .Cells(L, "A")
If Application.WorksheetFunction.CountIf(wsDonnees.Range("B2:B14"), MaDate) > 0 Or _
Application.WorksheetFunction.CountIf(wsDonnees.Range("D3:I33"), MaDate) > 0 Then
.Range("B" & L & ":N" & L).ClearContents
End If
Next L
End If
Next F