Question: (VBA) Write a sub that uses a Do loop and an Inputbox to ask the user for a product code until a valid one is

(VBA) Write a sub that uses a Do loop and an Inputbox to ask the user for a product code until a valid one is input. A product code is valid if it starts with the letter P and are followed by four digits. For an invalid code input, it should display a message telling the user why it is invalid.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!