mathgirl09
New Member
- Joined
- Jun 4, 2015
- Messages
- 10
Hi!
I'd like to know if there's a way to create an InputBox to ask for 2 values but these values must range from (1 to 20) by excluding the interval (5 to 15) inclusively. If the values are in the interval (5 to 15), a MsgBox must appear and tell to retry :
Also value#1 must be smaller than value#2, if not a MsgBox will appear again:
Then, the end result will be =value1/value2.
Thank you!
I'd like to know if there's a way to create an InputBox to ask for 2 values but these values must range from (1 to 20) by excluding the interval (5 to 15) inclusively. If the values are in the interval (5 to 15), a MsgBox must appear and tell to retry :
Code:
MsgBox("The value entered is in the interval (5,15). Try again.")
Also value#1 must be smaller than value#2, if not a MsgBox will appear again:
Code:
MsgBox ("Value#1 is larger than value#2. Try again.")
Then, the end result will be =value1/value2.
Thank you!
Last edited: