How to Remove Unsafe Query Warnings from Shared Excel Workbooks
Question details
Users need to bypass or remove the security warning regarding unsafe queries when opening a shared Excel dashboard.

- 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.
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.
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.
Open your dashboard workbook in Excel, navigate to the 'Data' tab on the top ribbon, and click on 'Queries & Connections'.
Select the 'Edit Links' option to view all external workbooks your dashboard is currently retrieving data from.
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.

Add the OneDrive Folder to Trusted Locations
Add the shared OneDrive folder to Excel's Trust Center to bypass security warnings for all files within that specific directory.
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. Download and Install: Download WPS Office for free from the official website and install it on your device.
- 2. Open Your Workbooks: Launch WPS Spreadsheet and easily open your existing Microsoft Excel workbooks to maintain your data connections.
- 3. Manage Data Links: Navigate to the Data tab to seamlessly view and manage your external workbook references.

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.




