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
Get step-by-step solutions from verified subject matter experts
