Question
6) An InputBox returns a string - whatever the user enters in the box. However, it returns a blank string if the user enters nothing
6) An InputBox returns a string - whatever the user enters in the box. However, it returns a blank string if the user enters nothing and clicks on OK or on Cancel. Write a sub that uses an InputBox to ask the user for a product code. Embed this in a Do Loop so that the user has to keep trying until the result is not a blank string.
8) In exercise 6, you chose one of the four possible versions of Do loops in your code; using a While or Until condition, and placing the condition at the top of the loop or the bottom of the loop. Regardless of how you did it, rewrite your sub in each of the three other possible ways.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started