Function DecompteJoursAnnee(ByVal AnneeEtudiee As Variant, ByVal AireDates As Range) As Long
Dim I As Long
Dim DateEncours As Date
Application.Volatile
DecompteJoursAnnee = 0
For I = 1 To AireDates.Count
For DateEncours = CDate(AireDates(I)) To CDate(AireDates(I).Offset(0, 1))
If Year(DateEncours) = AnneeEtudiee Then DecompteJoursAnnee = DecompteJoursAnnee + 1
Next DateEncours
Next I
End Function