Vous êtes sur la page 1sur 1

Public Sub nbr2txt()

x = InputBox("entrez un nombre")
Select Case x
Case 0: MsgBox ("zro")
Case 1: MsgBox ("un")
Case 2: MsgBox ("deux")
Case 3: MsgBox ("troix")
Case 4: MsgBox ("quatre")
Case 5: MsgBox ("cinq")
Case 6: MsgBox ("six")
Case 7: MsgBox ("sept")
Case 8: MsgBox ("huit")
Case 9: MsgBox ("neuf")
other: MsgBox ("hors limites")
End Select
End Sub

Vous aimerez peut-être aussi