Option Explicit
Sub CreerGroupes()
Dim RngInsc As Range, TInsc(), T43() As Byte, TRésu(), LInsc As Integer, L As Integer, C As Integer
Set RngInsc = [T_Inscrits[NOM P.]]
With RngInsc(RngInsc.Rows.Count, 1)
If IsEmpty(.Value) Then Set RngInsc = RngInsc.Resize(.End(xlUp).Row - RngInsc.Row + 1)
End With
TInsc = RngInsc.Value
CalcGroup43 T43, UBound(TInsc, 1)
ReDim TRésu(1 To 4, 1 To 10)
LInsc = 0
For C = 1 To UBound(T43)
For L = 1 To T43(C)
LInsc = LInsc + 1
TRésu(L, C) = TInsc(LInsc, 1)
Next L, C
WshDonnées.[E2:N5].Value = TRésu
WshDonnées.Activate
End Sub