Sub test_A()
Dim Z$, X&, Y&, p As Range: [A3:A1600] = Empty: Application.ScreenUpdating = False
Z = InputBox("Nombre d'items Nombre de ligne?", "Préparation du tableau", "10 5"): X = Split(Z)(0): Y = Split(Z)(1)
Set p = [A3].Resize(X * Y): p = "=1+INT((ROW()-3)/" & Y & ")": p.Value = p.Value
End Sub
Sub test_B()
Dim XY, X&, Y&, sPrompt$, t, i&: [A3:A1600] = ""
sPrompt = _
"Nombre d'items/Nombre de lignes?" & Chr(13) & Chr(13) & "(saisie valide : X/Y)"
XY = InputBox(sPrompt, "Préparation du tableau", "10/5")
If UBound(Split(XY, "/")) < 1 Then Exit Sub
X = Split(XY, "/")(0): Y = Split(XY, "/")(1): ReDim t(1 To X * Y, 1 To 1)
For i = 1 To UBound(t): t(i, 1) = 1 + Int((i - 1) / Y): Next
[A3].Resize(UBound(t)) = t
End Sub