Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do Loop

Status
Not open for further replies.

hockeyman9474

IS-IT--Management
Oct 11, 2007
17
US
I would like to write a Do Until loop that asks an input box to ask a question until only a 1 or a 2 are entered? I think mycoding is wrong. Here is what I have

do until number="1" or "2"
NUMBER=inputbox("Please press 1 or 2")
LOOP
 
There are quite a number of ways you could have fixed this, and got the result you wanted. Tell us what you did. You may help someone else with a similar question.

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top