1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Private couic As Boolean
Private Sub Command1_Click()
titi
End Sub
Private Sub titi()
couic = False
a = InputBox("entrez ce que vous voulez")
MsgBox "vous avez rentré " & a & " on continue"
toto
If couic Then
Exit Sub
Else
MsgBox "si vous me voyez, c'est que vous avez bien saisi un chiffre chez toto"
End If
End Sub
Private Sub toto()
a = InputBox("entrez un chiffre")
If Not IsNumeric(a) Then
couic = True
Exit Sub
Else
MsgBox "vous avez rentré un chiffre. Alors on continue et vous me voyez"
End If
End Sub |