I am wanting to restrict the user entering into the inputbox to one of four answers.
If not, the inputbox will loop until one of four answers is given.
The answer would include both text and a number, a1, a2, b1 or b2. Would declaring the variable as a string be appropriate?
I figured I could do this by using Do While or Loop While but I have no idea where to edit my code.
sub VendorType
dim vendor as string
distro = InputBox("Vendor Type", "Vendor Distribution Type")
If distro = "A1" Then
Thank you in advance!
If not, the inputbox will loop until one of four answers is given.
The answer would include both text and a number, a1, a2, b1 or b2. Would declaring the variable as a string be appropriate?
I figured I could do this by using Do While or Loop While but I have no idea where to edit my code.
sub VendorType
dim vendor as string
distro = InputBox("Vendor Type", "Vendor Distribution Type")
If distro = "A1" Then
Thank you in advance!