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.