aziz rasul
Active member
- Local time
- Today, 10:30
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have the following code, which prompts the user to enter a numerical number: -
If the user enters say 'two' instead of 2, how can I get the InputBox to keep on reappearing until the user either presses Cancel on the InputBox or enters a numerical value?
Code:
strPrints = InputBox("Enter the number of practitioners who will need a copy of the letter?", "Sandwell Primary Care Trust", intPractitioners)
If strPrints = "" Then
intPrints = 1
Else
intPrints = CInt(strPrints)
End If
If the user enters say 'two' instead of 2, how can I get the InputBox to keep on reappearing until the user either presses Cancel on the InputBox or enters a numerical value?