Option Explicit
Dim tb
Dim Dico As Object
Sub essai1()
Dim i As Long, d As Object, L As Byte
Dim année
Set d = CreateObject("scripting.dictionary")
tb = [Table].Value
année = 2024 ' sera remplacé par la combobox
For i = 1 To UBound(tb)
d(tb(i, 4)) = "" 'récupère nb espèce sans doublon
Next i
Dim Tr() 'debut tableau resultat
For i = 0 To d.Count - 1
ReDim Preserve Tr(1 To d.Count, 1 To 10)
Tr(i + 1, 1) = année
Tr(i + 1, 2) = d.keys()(i)
Next i
For i = 1 To UBound(tb)
If Year(tb(i, 1)) = année Then
'je me noie ici
End If
Next i
End Sub