VB Code:
strinput = InputBox("Who are you?") For i = 0 To 2 If guest(i) = strinput Then blnvalid = True Else: blnvalid = False End If Do While blnvalid = False strinput = ("reenter") Loop Next i
I'm trying to validate an input and if validation = false, a new question will be asked instead of the thing looping the same question.




Reply With Quote