Consider the following scenario. You create a file in a 2007 Microsoft Office application or in an earlier version of the application. You notice that some settings for the Microsoft Visual Basic Editor are enabled in the application, such as the Require Variable Declaration option and the Compile on Demand option. When you open the file in a Microsoft Office 2010 application, these settings are disabled.
This problem occurs because Visual Basic for Applications (VBA) is upgraded to version 7.0 in Microsoft Office 2010. Therefore, the registry entries that correspond to the settings for the Visual Basic editor are located under a different subkey. In Office 2010, the registry entries are located under the following subkey:
To have us fix this problem for you, go to the "Fix it for me" section. If you would rather work around this problem yourself, go to the "Let me fix it myself" section.
Fix it for me
To fix this problem automatically, click the Fix this problem link. Then click Run in the File Download dialog box, and follow the steps in this wizard. For Windows 8
For Windows 7, Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003
This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.
We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email message.
Let me fix it myself
To work around this problem yourself, enable the settings manually. To do this, use one of the following methods:
Start an Office 2010 application.
On the Developer tab, click Visual Basic.
Note If you start Microsoft Access 2010, click Visual Basic on the Database Tools tab.
On the Tools menu, click Options.
In the Options dialog box, select any option that you want to enable, and then click OK.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Click Start, click Run, type regedit, and then click OK.