Data Import & Export

How to Remove Unsafe Query Warnings from Shared Excel Workbooks

Olivia MillerOlivia Miller Nov 2, 2026 868 views

Question details

Users need to bypass or remove the security warning regarding unsafe queries when opening a shared Excel dashboard.

How to Remove Unsafe Query Warnings in Shared Excel Workbooks
Product
Excel
Device & OS
not provided
Scenario
A shared dashboard workbook retrieves data from another source workbook located in the same shared OneDrive folder.
Observed behavior
Excel displays a prompt warning users that the workbook contains queries that might be unsafe, interrupting the automatic data update process.
Before you start

Ensure that you completely trust the external data source and the workbook author, as automatically enabling queries from unverified sources can pose a system security risk.

Solution 1Recommended

Configure the Startup Prompt for Edit Links

Adjust the workbook's link settings so that it updates external data queries automatically without prompting the user with an alert.

If you are using external data connections across shared workbooks, Excel's default security measures will alert users upon opening the file. You can adjust the 'Edit Links' settings directly within the dashboard workbook to silently update these connections.

1
Open Data Connections

Open your dashboard workbook in Excel, navigate to the 'Data' tab on the top ribbon, and click on 'Queries & Connections'.

2
Access Edit Links

Select the 'Edit Links' option to view all external workbooks your dashboard is currently retrieving data from.

3
Change Startup Prompt

Click the 'Startup Prompt' button at the bottom of the dialog box, select the option to update links automatically without displaying the alert, and save the workbook.

Configure the Startup Prompt for Edit Links
File Structure Recommendation: Keep the source data workbook separate from the dashboard if users should not have access to the underlying raw data. Do not merge the files unless raw data visibility is acceptable.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

If you are experiencing persistent compatibility or security warning issues with complex external links in Microsoft Office, consider switching to WPS Office. It provides a lightweight, highly compatible environment for managing inter-workbook data connections.

  1. 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
  2. 2. Open Your Workbooks: Launch WPS Spreadsheet and easily open your existing Microsoft Excel workbooks to maintain your data connections.
  3. 3. Manage Data Links: Navigate to the Data tab to seamlessly view and manage your external workbook references.
Completely free and lightweight office suiteHigh compatibility with Microsoft Excel (.xlsx) formats and external data connectionsFamiliar tabbed user interface allowing for zero learning curveRobust data security and reliable link management
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show an 'unsafe query' warning for files in the same OneDrive folder?

Excel treats any data retrieval from a separate file as an external query. The warning is a built-in security measure to prevent malicious code or data from automatically executing, regardless of whether the files share the same OneDrive directory.

Can I permanently disable all external link warnings in Excel?

Yes, you can disable them by going to File > Options > Trust Center > Trust Center Settings > External Content, and selecting 'Enable all Data Connections'. However, this is not recommended as it leaves your device vulnerable to malicious external files.

Does merging the source file and dashboard eliminate the query warning?

Yes. If you merge the data into a single workbook, there are no longer any external links to trigger the warning. However, you should avoid this if the dashboard users are not authorized to view the raw underlying data.

Will setting the Startup Prompt to update automatically affect other users?

Yes, saving the dashboard with the Startup Prompt set to 'Don't display the alert and update links' will generally apply to anyone opening the shared file, provided their personal Trust Center settings do not strictly block all external content.