Function TotauxPers(ByVal Src As Range)
Dim Ts(), Pers As SsGroup, Ls&, Détail, dC&, C&
With Application.Caller: ReDim Ts(1 To .Rows.Count, 1 To .Columns.Count): End With
dC = Src.Columns.Count - UBound(Ts, 2)
For Each Pers In GroupOrg(Src, 1)
Ls = Ls + 1: Ts(Ls, 1) = "Total " & Pers.Id
For Each Détail In Pers.Contenu
For C = 2 To UBound(Ts, 2): Ts(Ls, C) = Ts(Ls, C) + Détail(C + dC): Next C, Détail, Pers
While Ls < UBound(Ts): Ls = Ls + 1: For C = 1 To UBound(Ts, 2): Ts(Ls, C) = "": Next C: Wend
TotauxPers = Ts
End Function