The number must be between 1 and 31

Every time I try to print a single envelope, the message “the number must be between 1 and 31” pops up.

Although I’m sure there must be an easier solution, several online sources suggest that recreating the user profile solves the problem. But in my case it doesn’t help and finally able to resolve this by removing given Reg Key. Hopefully it’ll help some one.


To delete the Word Data registry key, follow these steps:

  1. Exit all Office programs.
  2. Click Start, click Run, type regedit, and then click OK.
  3. Locate the following registry subkey, as appropriate for the version of Word that you are running:
    • Word 2002:

      HKEY_CURRENT_USER\Software\Microsoft \Office\10.0\Word\Data

    • Word 2003:

      HKEY_CURRENT_USER\Software\Microsoft\ Office\11.0\Word\Data

    • Word 2007:

      HKEY_CURRENT_USER\Software\Microsoft\ Office\12.0\Word\Data

    • Word 2010:


  4. Click Data,
  5. Click Delete on the Edit menu, and then click Yes.
  6. Exit Registry Editor.
  7. Start Word.


This entry was posted in MS Office, Printing, Tips & Trick, Word and tagged , , , , , , . Bookmark the permalink.

4 Responses to The number must be between 1 and 31

  1. RT Sweeney says:

    Just wanted say this worked for an issue I was having with a user in our organization!

  2. R Doney says:

    Worked like a charm!! Thanks!

  3. K Dalby says:

    Been printing envelopes for years from Word then just, this morning, experienced this same problem. This solution worked fine unable to verify version of MS Word installed so picked on the last entry under Office in the registry 16 I think.

  4. Sir Summers says:

    THANK YOU! Finally a solution that worked!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s