Editing the registry to enable automatic refresh in Excel so that Excel will not prompt you every time you open a file containing a query or PivotTable that has been configured to refresh automatically.
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 your operating system. Modify the registry at your own risk.
- Exit your version of Excel.
- Click Start, click Run, type regedit, and then click OK.
- Select the appropriate registry key, depending on the version of the product that you are using:
Excel 2003 - HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options.
Excel 2002 - HKEY_CURRENT_USER \Software\Microsoft\Office\10.0\Excel\Options.
Excel 2000 - HKEY_CURRENT_USER \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, enter 2, and then click OK. The allowed values are listed here.
0 = Excel prompts you every time that you open a file containing a query or PivotTable that has been configured to refresh automatically. This is the default behavior.
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.
- On the File menu, click Exit to quit Registry Editor.


