Sub test()
Dim i%
On Error Resume Next 'si B1 ne va pas
For i = 1 To [B1]
Select Case i
Case 1: AI1
Case 2: AI2
Case 3: AI3
End Select
Next
End Sub
Sub AI1()
MsgBox "a" 'pour tester
End Sub
Sub AI2()
MsgBox "b" 'pour tester
End Sub
Sub AI3()
MsgBox "c" 'pour tester
End Sub