Function compteOccurences(leNom As String, leCode As String)
tabloF = Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre")
For i = 0 To 11
With Sheets(tabloF(i))
lig = Application.Match(leNom, .[A:A], 0)
If Not IsError(lig) Then
cpt = cpt + Application.CountIf(.Cells(lig, 2).Resize(1, 12), leCode)
End If
End With
Next i
compteOccurences = cpt
End Function