Hi guys,
I have an array (person) and I want to validate it. The input box comes up and asks the user to enter a number. If the user enters a number less than 0 I want it to display a message box saying "Invalid number" and then not add the invalid number to the listbox.
I would then like it to return to the input box asking for the person age and continue doing so until they enter a number of 0 or more.
Could someone please adapt this coding to help; I've being trying all night :wave:
Do
age(person) = InputBox("Enter person's age")
Loop While age(person) < 0
lstage.AddItem age(person)
