Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

Input box prompt with only 5 possible entries

Dear Experts:

Could somebody please help me with a code snippet for an Input Box:

The user is to be prompted with an inputbox that only allows 5 entries: DE or EN or ES or FR or IT. Only capital letters are allowed.

Should the user enter something other than DE, EN, ES, FR or IT, the macro is not to exit but the inputbox is to reappear.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
Avatar of Mike in IT
Mike in IT
Flag of United States of America image

Can you provide a workbook example of what you have? Or at least the code that you already have?
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would myself use an UserForm but Andreas wanted an InputBox.
Pleased to help