|I stand slightly corrected. I had not considered using the OnKey feature to output an empty string for every key. An empty string is represented by "". That doesn't exactly disable the keyboard, it uses VBA to output something different (nothing, more or less) when a key is pressed.|
The code at this site breaks the keyboard down into sections, so if you comment out the section that "disables" the number keys, those should be the only ones that work.
Take a look here..I have not tried it.
Now, I have found that OnKey can be erratic, but that's usually when you are trying to send a "list" of Onkey strings to simulate a number of commands, one right after the other. For individual key presses, it might be fine.
As far as limiting the entry to 3 numbers only, that will take a little more investigation. I'll see what I can find.
Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.