troubleshooting Question

Excel VBA - Selection changed in combobox limits text box entry

Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
Windows 2000Microsoft Excel
3 Comments1 Solution400 ViewsLast Modified:
Hi

I have a combo box and a text box on a form.
The combobox has three items "A". "B" and "C"
If the user selects "A" then I want them to only be able to enter alphabetical letters into the text box
If the user selects "B" then I want them to only be able to enter numbers up to 60000 into the text box
If the user selects "C" then I want them to only be able to enter both numbers up to 60000 and alphabetical letters into the text box

What code do I use to achieve this

Thanks in advance

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros