Excel Power Query: How to Disable Refresh
In this article
You cannot completely disable Power Query refresh in Excel with a single global switch, but you can stop queries from refreshing automatically and prevent them from running when the workbook opens. The most reliable method is to turn off the query's background refresh and set the workbook to not refresh data on open, then avoid clicking Refresh All. For a harder block, remove the query's connection or convert it to a static table. This guide covers the practical steps for Excel on Windows and Mac, where labels can differ slightly by version and region.
What You'll Need
- Excel 2016 or later with Power Query built in (Windows) or Excel for Microsoft 365 (Mac). In older Excel 2010/2013, Power Query is an add-in.
- A workbook that already contains at least one Power Query query.
- Permission to edit the workbook and its connections.
Step-by-Step
- Open the workbook that contains the query you want to stop refreshing.
- Go to the Data tab and click Queries & Connections to open the pane on the right. On Mac, the pane is under Data > Queries & Connections as well, though the layout may differ.
- Right-click the query in the pane and choose Properties. If you do not see Properties, first click the query name to select it, then right-click.
- In the Properties dialog, clear the checkbox for Enable background refresh. This stops Excel from refreshing the query in the background while you work.
- Still in Properties, look at the Refresh control section. Clear Refresh data when opening the file if it is ticked. This prevents the query from running automatically when the workbook opens.
- Click OK to save the query properties.
- Turn off refresh on open for the whole workbook as a second layer: go to Data > Connections (or Queries & Connections > Connections tab), select each connection, and repeat the same Refresh data when opening the file untick. This is separate from the query properties and catches connections that are not queries.
- Save the workbook. From now on, the query will not refresh automatically. You can still refresh manually by right-clicking the query and choosing Refresh, or by using Data > Refresh All.
- For a hard stop, if you truly never want the query to run again, right-click the query and choose Delete. This removes the query and its connection. Alternatively, load the query results to a table, then copy and paste the values as static data and delete the query. Note that deleting a query cannot be undone with Ctrl+Z after saving.
Common Mistakes
- Only unticking background refresh. This stops background refreshes but the query can still refresh when the file opens if Refresh data when opening the file is still ticked. Untick both.
- Missing connections that are not queries. Some connections are created outside Power Query. Use Data > Connections to review all of them, not just the Queries & Connections pane.
- Expecting Refresh All to be disabled. There is no built-in switch to grey out Refresh All. The only way to prevent it is to remove the query or its connection.
- Deleting the query by accident. Deleting removes the query definition and any loaded table it created. If you only want to stop automatic refresh, use Properties instead.
- Forgetting Mac differences. On Excel for Mac, some dialog labels and pane locations differ. If you cannot find a setting, check the query's context menu and the Data tab ribbon.
Tips
- Use Data > Refresh All > Connection Properties to review refresh settings for all connections at once.
- If you want the data to stay current but not refresh constantly, set a manual refresh routine: refresh only when you choose, then save.
- Keep a copy of the workbook before deleting queries, since deletion is permanent after saving.
- If the query pulls from an external source that is slow or unreliable, disabling automatic refresh avoids long waits and errors on open.
- Document which queries are set to manual refresh so colleagues do not wonder why data looks stale.
Troubleshooting
If the query still refreshes when you open the workbook, check every connection in Data > Connections and untick Refresh data when opening the file for each one. Also check for any VBA macros that call RefreshAll; macros run regardless of the UI settings, so you would need to edit or disable the macro. If the Refresh All button still works, that is expected: disabling automatic refresh does not disable manual refresh. To block manual refresh entirely, delete the query or remove its connection. If the Properties dialog is greyed out, the workbook may be protected or the query may be part of a data model that requires special handling; unprotect the sheet or check the connection type. On Mac, if the Queries & Connections pane does not show Properties, try right-clicking the query name directly or use the Data tab's connection options. If refresh errors appear on open despite your settings, the source may be unavailable; disabling refresh on open prevents those errors. Finally, if you share the workbook, note that refresh settings are saved with the file, so recipients inherit them.
Frequently Asked Questions
Can I disable Refresh All entirely?
No. Excel does not provide a setting to disable the Refresh All button. You can only stop automatic refreshes and avoid clicking it, or remove the queries so there is nothing to refresh.
Does disabling background refresh stop all refreshes?
No. It stops refreshes that happen in the background while you work. The query can still refresh when the file opens if that option is ticked, and manual refresh still works.
Will these settings carry over to other users?
Yes. Refresh settings are saved in the workbook, so anyone who opens the file inherits them unless they change them.
Can I disable refresh for just one query?
Yes. Use the query's Properties dialog to untick background refresh and refresh on open for that query only. Other queries keep their own settings.
What happens if I delete a query?
The query and its connection are removed, and any table it loaded remains as static data. Deletion is permanent after saving, so keep a backup.
Does this work in Excel for Mac?
Yes, the same Properties options exist, though menu labels and pane locations can differ slightly by version. Look under the Data tab and the query's right-click menu.