Microsoft KB Archive/248204
Article ID: 248204
Article Last Modified on 12/31/2007
- Microsoft Office Excel 2003
- Microsoft Excel 2002 Standard Edition
- Microsoft Excel 2000 Service Pack 1
This article was previously published under Q248204
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, 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 XP and Windows Vista
When you open a workbook in Microsoft Excel, you receive the following message:
This issue occurs when the following conditions are true:
- Your workbook contains at least one PivotTable, database query, or Web query.
- The Refresh data on file open option in the External Data Range Properties dialog box is checked for at least one of the PivotTables, database queries, or Web queries in your workbook.
Microsoft Excel 2000 Service Release 1 (SR-1) prompts you if your workbook contains a PivotTable, database query, or Web query that has been configured to refresh automatically when you open the workbook.
The "Options that are available in the Query Refresh dialog box" section describes each option in the Query Refresh dialog box.
The "How to use the QuerySecurity Registry Entry to Configure Excel" section describes how you can use the QuerySecurity registry entry to configure how Excel handles workbooks that contain queries or PivotTables that are configured to refresh automatically.
Options that are available in the Query Refresh dialog box
If you click Enable automatic refresh, then the query or PivotTable is refreshed when you open your workbook. If you click Disable automatic refresh, then the query or PivotTable is not refreshed when you open your workbook. However, clicking Disable automatic refresh does not prevent you from refreshing the query or PivotTable after you have opened your workbook. The Enable automatic refresh and Disable automatic refresh options affect only the current workbook.
If you click to select the Enable automatic query refresh for all workbooks and do not show this warning again check box, you are not prompted when you open any workbooks that refresh a query or PivotTable when they are opened.
Note The Enable automatic query refresh for all workbooks and do not show this warning again check box is available only in Microsoft Excel 2000 and in Microsoft Excel 2002. In all versions of Excel that are later than Excel 2002, you must manually insert and configure the registry key as documented in the "How to use the QuerySecurity registry entry to configure Excel" section.
How to use the QuerySecurity registry entry to configure Excel
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.
You can use the QueryRefresh registry entry to configure how you want Excel to handle opening workbooks that contain a query or PivotTable that refresh automatically. By default, the QuerySecurity entry is not present in the Windows registry. To add the QuerySecurity entry to the Windows registry, follow these steps:
- Exit your version of Excel.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select one of the following registry keys, depending on the version of the product that you are using:
- For Excel 2003, locate and then click to select HKCU\Software\Microsoft\Office\11.0\Excel\Options.
- For Excel 2002, locate and then click to select HKCU\Software\Microsoft\Office\10.0\Excel\Options.
- For Excel 2000 SR-1 and later versions of Excel 2000, locate and then click to select HKCU\Software\Microsoft\Office\9.0\Excel\Options.
- After you select the key that is specified in step 3, point to New on the Edit menu, and then click DWORD value.
- Type QuerySecurity, and then press ENTER.
- Right-click QuerySecurity, and then click Modify.
- In the Value data box, type a valid value for the functionality that you want, and then click OK.
- On the File menu, click Exit to quit Registry Editor.
See the "Valid settings for the QuerySecurity entry" section for a description of the valid values that are mentioned in step 7 of the previous procedure. This change takes effect the next time that you start Excel.
Valid settings for the QuerySecurity entry
The following table contains the valid settings for the QuerySecurity entry:
Value Effect ----------------------------------------------------------------------- 0 Excel prompts you every time that you open a file containing a query or PivotTable that has been configured to refresh automatically. Note: This is the default behavior in Excel 2000 SR-1. 1 Excel will not prompt you when you open a file containing a query or PivotTable that has been configured to refresh automatically. Excel will not refresh the query or PivotTable automatically. 2 Excel will not prompt you when you open a file containing a query or PivotTable that has been configured to refresh automatically. Excel will refresh the query or PivotTable automatically. Note: This is the default behavior in Excel 97 and earlier (non-SR-1) versions of Excel 2000.
Additional query words: XL2000 XL2002 XL2003
Keywords: kbfix kbprb KB248204