Why Word Number Form Fields Accept Letters and How to Fix It
Question details
The user is trying to figure out why a legacy form field configured as a 'Number' field in a Word document still allows the typing of alphabetic characters instead of restricting input strictly to numbers.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating a fillable form with restricted input fields where only numerical data should be allowed.
- Observed behavior
- The form field accepts letter inputs during typing. While most letters disappear when the field loses focus, certain characters may remain, failing to provide strict input validation.
Ensure that the Developer tab is enabled in your ribbon menu, as you will need it to access form controls, modify properties, or implement VBA validation.
Use Content Controls with VBA for Strict Validation
Since legacy form fields only format the text after the user exits the field rather than blocking keystrokes during typing, using a Plain Text Content Control coupled with a VBA macro is the best way to enforce strict numerical input.
Legacy number fields are limited by design and do not actively monitor keystrokes. Replacing them with modern content controls and a simple macro will ensure that non-numeric characters are immediately rejected or flagged.
Navigate to the Developer tab, place your cursor where the number field should be, and click the 'Plain Text Content Control' icon.
With the content control selected, click 'Properties' in the Developer tab. Enter a unique identifier, such as 'NumOnly', in the Tag field and click OK.
Press Alt + F11 to open the VBA Editor. Double-click 'ThisDocument' in the Project Explorer and paste a 'Document_ContentControlOnExit' macro that checks if the input is numeric for the 'NumOnly' tag, prompting the user to re-enter if it contains letters.

Rely on Legacy Form Field Auto-Formatting
If you cannot use macros and must stick to legacy form fields, it is important to understand how Word naturally handles invalid characters so you can instruct your users accordingly.
Switch to WPS Office for a Smoother Document Editing Experience
Tired of dealing with complicated VBA codes and legacy form field limitations in Microsoft Word? Try WPS Office. It is a highly compatible, lightweight, and completely free alternative that handles complex document formatting and daily office tasks with ease.
- 1. Download and Install: Visit the official WPS website to download the free installation package for your operating system.
- 2. Open Your Existing Documents: Launch WPS Writer and open your .docx files directly. Your formatting and form layouts will be preserved perfectly.
- 3. Enjoy Seamless Editing: Continue editing your documents using familiar tools and enjoy advanced features without the heavy subscription fees.

Frequently Asked Questions
Can I prevent users from typing letters in Word form fields without using macros?
No, standard legacy number form fields do not have the capability to block keystrokes while the user is typing. They only attempt to reformat or delete invalid characters after the user finishes typing and clicks away from the field.
Why do some letters like 'st' or 'nd' stay in the number field even after I click away?
Word's legacy number formatting logic sometimes interprets specific alphabetical characters as ordinals (such as 1st, 2nd, 3rd). Therefore, it may ignore them during the automatic formatting check when the field loses focus.
How do I enable the Developer tab to fix my form fields?
To enable the Developer tab, go to File > Options > Customize Ribbon. In the right-hand column, check the box next to 'Developer' and click OK. This will give you access to legacy tools, content controls, and macro settings.




