Take a look at Validation in XL Help. Specifically set
Allow: Text Length
Minimum: 6
Maximum: 6
Note that this will still allow an entry of
123.45
If you want to restrict the entry to only letters or numbers (not
punctuation, etc.), you'll need to use a VBA Event macro. Post back if
you need help with that.
It won't preclude you from entering more than 6 characters. You get a message
*after* you've finished the entry (pressed ENTER or TAB), and it's rejected.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.