Bonjour Excelleurs(ses), Aude21,
Je vois que tu galères toujours sur ton projets. tu ne souhates pas faire un formulaire avec une listView et des liste déroulantes qui seront tes critères?
Sub NOMBRE_DE_SINISTRES_DECLARES1()
Dim Date_Souscription_Adhésion As Range, Date_Survenance As Range
Dim DernLigne As Long
Dim nblignes(1 To 12, 2013 To 2020) As Long
Dim i As Long
Dim l As Long
Dim j, k As Integer
Dim a, b, c, d, e As Integer
DernLigne = 0
With Worksheets("Sinistre_Historique_ICIPMTT15_7")
DernLigne = .Range("A" & .Rows.Count).End(xlUp).Row
End With
a = LBound(nblignes, 2)
e = UBound(nblignes, 2)
For i = 2 To DernLigne
If a <= Year(Cells(i, 21).Value) And Year(Cells(i, 21).Value) <= e Then
j = Month(Cells(i, 7).Value)
k = Year(Cells(i, 7).Value)
nblignes(j, k) = nblignes(j, k) + 1
End If
Next i
For l = 1 To DernLigne
If Sheets("Feuil1").Cells(l, 5).Value <> OUI Then 'SUR TON FICHIER EXCEL FAIT GAFFE A LA casse la NOTATION OUI ET oui n'est pas pareil.
For i = 1 To 12
For k = a To e
'POURQUOI LA COLONNE AL OU 38
Sheets("Feuil1").Cells(i + (k - 2013) * 12, 38).Value = nblignes(i, k)
Next k
Next i
End If
Next l
End Sub