Hello,
Is there code to only allow to 2 letter entries in a column and keep them uppercase? This is for US States.
Thank you,
XJ
Hello,
Is there code to only allow to 2 letter entries in a column and keep them uppercase? This is for US States.
Thank you,
XJ
try this:
note that there is no state validation as you didn't ask for that. additional code is necessary to achieve that.Please Login or Register to view this content.
Last edited by dmcgov; 12-13-2018 at 08:23 AM.
Thank you for the code.
It keeps popping up with message and can't get out. One popup to to next one.
Try this:
Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
where did you put the code? (it should be the codesheet that you are working on column A).
i have tested the code and it does everything that you asked
Thank you TMS that works better. It functions without any popups. I also appreciate the help from you dmcgov.
Cheers!
@tms, can you look at my code and see what i did wrong? it appears to run fine on my side without recurring popups.
@dmcgov: seems to work OK for me. Maybe it's because you've used a Selection Change Event handler and it asks for input when you select a cell and then validates it. My code is a Change Event handler, so it only validates data when it is input (in column A).
Perhaps it's just less intuitive forthe OP.
Horses for courses, I guess.
@xjohnson: You're welcome. Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks