"the number must be between 1 and 31"Solutions on the web advised to delete the whole user profile, but that wasn't really an option. Fortuantely I found this registry key: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Data\Settings
Remove that key and the problem goes away. I'm not sure what else the key holds, but it's a darn site better than deleting the whole profile.