Private Sub Worksheet_Activate()
Dim D, C As Range
Set D = CreateObject("Scripting.dictionary")
For Each C In [Tb]: D(C.Value) = C: Next 'Tb : tableau de base renommé ainsi
[A:A].Delete: [A1] = "ID Patients"
[A2].Resize(D.Count) = Application.Transpose(D.keys)
[B1] = "Nombre de Patients"
'attention au vide
[B2] = D.Count + (Application.CountBlank([Tb]) > 0)
End Sub