Excel Registry
Excel Registry
Go to 'HKEY_CURRENT_USER'.
Click on 'OK'.
Now restart the Excel and you can see that the formula bar,
scroll bars and the status bars have been blocked.
CROSS-REFERENCE Your VBA macros can also read and write information to the Registry.
Refer to Chapter 11 for details.
You can use the Registry Editor program to browse the Registry - and even edit its
contents if you know what you're doing. The Registry Editor is named regedit.exe .
Before beginning your explorations, take a minute to read the upcoming sidebar (titled
"Before You Edit the Registry "). Figure 4-9 shows what the Registry Editor looks like.
Figure 4-9: The Registry Editor lets you browse and make changes to the Registry.
The Registry consists of keys and values, arranged in a hierarchy. The top-level keys
are:
o HKEY_CLASSES_ROOT
o HKEY_CURRENT_USER
o HKEY_LOCAL_MACHINE
o HKEY_USERS
o HKEY_CURRENT_CONFIG
o HKEY_DYN_DATA
Excel's settings
Information used by Excel 2007 is stored in this Registry section:
HKEY_CURRENT_USER\Software\Microsoft\Office.0\Excel
Before You Edit the Registry
You can use the regedit.exe program to change anything in the Registry, including
information that is critical to your system's operation. In other words, if you change the
wrong piece of information, Windows may no longer work properly.
Get into the habit of choosing the File Export command in Regedit. This command
enables you to save an ASCII version of the entire Registry or just a specific branch of
the Registry. If you find that you messed up something, you can always import the ASCII
file to restore the Registry to its previous condition (choose the Registry Import
Registry File command). Refer to the Help file for Regedit for details.
In this section of the Registry, you'll find a number of keys that contain specific values
that determine how Excel operates.
The Registry settings are updated automatically by Excel when Excel closes .
Note It's important to understand that Excel reads the Windows Registry only once - when it
starts up. In addition, Excel updates the Registry settings only when Excel closes
normally. If Excel crashes ( unfortunately , not an uncommon occurrence), the Registry
information is not updated. For example, if you change one of Excel's settings, such as
the visibility of the Formula bar, this setting is not written to the Registry until Excel
closes by normal means.
Table 4-6 lists the Registry sections that are relevant to Excel 2007. You might not find
all these sections in your Registry database.
Section Description
Add-in Lists add-ins that appear in the Add-Ins dialog box. Add-ins that are included
Manager with Excel do not appear in this list. If you have an add-in entry in this list box
that you no longer use, you can remove it by using the Registry Editor.
Converters Lists additional (external) file converters that are not built into Excel.
Error Holds the settings for formula error checking.
Checking
File MRU Holds information about the most recently used files (which appears in the
Recent Documents list when you click the Office button).
Options A catch-all section; holds a wide variety of settings.
Recent Stores the names of templates you've used recently.
Templates
Resiliency Information used for recovering documents.
Security Specifies the security options for opening files that contain macros.
Spell Stores information about your spelling checker options.
Table 4-6: EXCEL CONFIGURATION INFORMATION IN THE REGISTRY
Open table as spreadsheet
Section Description
Checker
StatusBar Stores the user choices for what appears in the status bar.
UserInfo Stores information about the user.
Although you can change most of the settings via the Excel Options dialog box, a few
settings cannot be changed directly from Excel (but you can use the Registry Editor to
make changes). For example, when you select a range of cells, you may prefer that the
selected cells appear in high contrast white-on-black. There is no way to specify this in
Excel, but you can add a new Registry key like this:
HKEY_CURRENT_USER\Software\Microsoft\Office.0\Excel\Options
2. Right-click and select New DWORD Value.
5. In the Edit DWORD Value dialog box, click the Decimal option and enter 16 (see
Figure 4-10).
When you restart Excel, range selections will appear with a black background rather
than gray. If you don't like this look, just delete the Options6 Registry entry.
Tip If you have trouble starting Excel, it's possible that the Registry keys have become
corrupt. You can try using the Registry Editor to delete the entire Excel section:
HKEY_CURRENT_USER\Software\Microsoft\Office.0\Excel
The next time Excel is started, it will rebuild the Registry keys. You will, however, lose all
of the customization information that was stored there.
https://flylib.com/books/en/3.428.1.57/1/
How To Reset Excel To Default Settings
Author: Konstantinos Tsoukalas , Last updated: November 28th,
2022
1. Close Excel.
Feedback
In this article
1. Summary
2. More information
Important
This article contains information about how to modify the registry. Make sure that
you back up the registry before you modify it. Make sure that you know how to
restore the registry if a problem occurs. For more information about how to back up,
restore, and modify the registry, see Description of the Microsoft Windows
registry.
Summary
Microsoft Excel contains a feature that allows you to recover data from corrupted
workbooks. This article describes how to use the registry to override the default
behavior when Excel tries to recover data.
More information
When you open a workbook in Excel, Excel checks for problems in the workbook. If
Excel detects a problem in a workbook, the data recovery process begins
automatically.
Note
You can also manually start the data recovery process. To do this, click Open on
the File menu, click the arrow on the Open button, and then click Open and Repair.
All the registry values that affect data recovery are in the following registry subkeys,
depending on which version of Excel you are running:
Microsoft Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\Options
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Options
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\Options
These subkeys contains three DWORD registry values that you can modify as follows.
Note
In these subkeys, 2 is always the default value, and 1 is the only other valid value.
ExtractDataMode
If ExtractDataMode equals 2 (or a value that is not valid), Excel assumes that the
structure of the workbook is not corrupted. Therefore, Excel tries to recover the
whole workbook, including formulas, formatting, and Microsoft Visual Basic for
Applications (VBA) projects.
Warning
Serious problems might occur if you modify the registry incorrectly by using Registry
Editor or by using another method. These problems might require that you reinstall
the operating system. Microsoft cannot guarantee that these problems can be
solved. Modify the registry at your own risk.
2. Locate the following registry subkey, as appropriate for the version of Excel that
you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\
Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\
Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\
Options
4. Type 1in the Value data field, and then click OK.
ExtractDataFormulas
If ExtractDataFormulas equals 2 (or a value that is not valid), Excel tries to recover
formulas and converts a formula to a value if recovery does not succeed.
2. Locate the following registry subkey, as appropriate for the version of Excel that
you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\
Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\
Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\
Options
4. Type 1in the Value data field, and then click OK.
ExtractDataDisableUI
If ExtractDataDisableUI equals 2 (or a value that is not valid), Excel prompts you with
two messages during the Open and Repair process. The first message prompts you
to choose either to repair or to extract data. The second message prompts you to
choose either to convert to values or to recover formulas.
If ExtractDataDisableUI equals 1, Excel does not offer you any options during the
Open and Repair process. Excel opens the file by using the Safe Load process. Data
extraction is still enabled through the object model and through automatic data
recovery.
2. Locate the following registry subkey, as appropriate for the version of Excel that
you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\
Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\
Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\
Options
4. Type 1in the Value data field, and then click OK.
Resource:- Registry keys that control the File Repair feature - Microsoft 365 Apps | Microsoft
Learn