j'ai essayé en procédant autrement (car ne maitrise pas trop la notion de dico) mais je n'arrive pas à mes fins
En effet je tente de vérifier si la valeur existe dans le dico pour ne pas la prendre en compte
If MonDico.Exists(Staff_List.Value) Then
Else
MonDico.Add Staff_List.Value, i
End If
mais cela ne fonctionne toujours pas
Public Sub Staff_List_DblClick(ByVal lstncel As MSForms.ReturnBoolean)
Dim MonDico As Object
Dim i As Long, j As Long
Set TblBd = Sheets("Staff").ListObjects("T_Staff")
Set MonDico = CreateObject("Scripting.Dictionary")
aA = TblBd.DataBodyRange.Value
'Sheets("DashBoard").Staff_List.List = MonDico.keys
For i = 1 To UBound(aA)
If aA(i, 3) = UCase(Staff_List.Value) Then
If MonDico.Exists(Staff_List.Value) Then
Else
MonDico.Add Staff_List.Value, i
End If
NomTableau2 = "Projects"
Set TblBd2 = Sheets("Projects").ListObjects("Projects")
aB = TblBd2.DataBodyRange.Value
For j = 1 To UBound(aB)
If (aB(j, 1) = aA(i, 1)) Then
If (aB(j, 13) <> "Rejected" And aB(j, 13) <> "Closed" And aB(j, 13) <> "Abandonned") Then
MsgBox (aB(j, 3))
End If
End If
Next j
End If
Next i
End Sub