Excel Workbook Contains Links: How to Fix
In this article
The message "This workbook contains links to one or more external sources" appears when a file references data in another workbook, and Excel wants your permission to update those values. To stop it, open the workbook, go to Data > Edit Links (or Data > Queries & Connections > Edit Links on newer versions), select each source, and choose Break Link. If you still need the data, copy it in as values first. This guide walks through finding the links, breaking them safely, and preventing the prompt from returning. Menu labels can differ slightly by Excel version, platform and region.
What You'll Need
- Microsoft Excel on Windows or Mac (the steps below are for desktop Excel; the web version has limited link management).
- The workbook that shows the link warning.
- Access to the source workbooks if you want to keep the linked data instead of breaking it.
- A backup copy of the workbook before making changes.
Step-by-Step
- Make a backup. Save a copy of the workbook under a different name before you change or break any links. Breaking a link replaces formulas with their current values and cannot be undone with Ctrl+Z after saving.
- Open the workbook and dismiss the prompt carefully. When the security bar or dialog asks whether to update links, choose Don't Update if you are not sure the source files are available or trustworthy. Choosing Update pulls in current data from the source; if the source is missing, you may see errors or zeros.
- Find the links. On Windows, go to Data > Edit Links. On Mac, go to Data > Edit Links as well; in some versions it sits under the Data tab's Connections group. If you cannot find it, look under Data > Queries & Connections and then Edit Links. The Edit Links dialog lists every external source the workbook uses.
- Inspect each source. Select a source in the list and click Check Status to see whether the file is available. The dialog also shows the source type (Excel file, web query, etc.) and the item name. Note which worksheets or formulas depend on it.
- Decide: keep or break. If you still need live data, keep the link and make sure the source file stays in the same location with the same name. If you only need the current values, break the link so the workbook becomes self-contained.
- Break the link safely. In the Edit Links dialog, select the source and click Break Link. Excel warns that formulas will be converted to values; confirm. Repeat for each source. If Break Link is greyed out, the workbook may be protected or the link may be a data query rather than a cell link; unprotect the sheet first (Review > Unprotect Sheet) if you have the password.
- Check for leftover formulas. After breaking links, scan for formulas that still reference an external path, such as
=[Book1.xlsx]Sheet1!A1. Use Home > Find & Select > Find and search for[or.xlsxto locate them. Replace them with values or internal references. - Save and reopen. Save the workbook, close it, and reopen it. The link warning should no longer appear. If it does, repeat the Edit Links check; a hidden link may remain in a defined name, chart series, or data validation list.
- Prevent new links. When copying data from another workbook, use Paste Special > Values instead of a normal paste. Avoid typing formulas that point to another file. If you must link, keep both files in a shared, stable folder and avoid renaming or moving them.
Common Mistakes
- Breaking links before copying the data. Breaking a link keeps only the last calculated value. If the source is closed or unavailable, that value may be an error or zero. Open the source and update first, or copy the data manually.
- Choosing Update on an untrusted file. Updating links can pull in data from an external file. Only update if you know and trust the source.
- Assuming Edit Links covers everything. Links can hide in chart series, defined names, pivot table caches, and data validation lists. The Edit Links dialog usually lists them, but not always; check those areas if the prompt persists.
- Renaming or moving the source file. This breaks the link path. If you must move it, use Edit Links > Change Source to point to the new location.
- Using the web version for link cleanup. Excel for the web has limited link management. Use desktop Excel for breaking links.
Tips
- Keep a "source" folder and a "report" folder, and never rename files inside them without updating links.
- Use Formulas > Show Formulas (Ctrl+`) to spot external references quickly.
- If you only need a snapshot, copy the source range and use Paste Special > Values into the destination workbook.
- For recurring reports, consider Power Query (Data > Get Data) instead of direct cell links; queries can be refreshed on demand and are easier to manage.
- Store linked workbooks on a shared network location both users can access, not in a personal folder.
Troubleshooting
The prompt keeps appearing after breaking links. A link may remain in a chart, defined name, or data validation. Check Formulas > Name Manager for names that contain a path, and click each chart series to inspect its formula bar. Also check Data > Data Validation for lists that reference another file.
Edit Links is greyed out. The workbook may be protected or shared. Go to Review > Unprotect Workbook (password may be required) and try again. If the file is marked as final, click Edit Anyway on the yellow bar.
Break Link does nothing. The link may be a data query rather than a cell link. Go to Data > Queries & Connections, right-click the query, and choose Delete if you no longer need it. This removes the connection, not the data already loaded.
Values show as #REF! after breaking. The source was unavailable when you broke the link. Restore the source file, reopen the workbook, update links, then break again. If the source is gone, you will need to re-enter the data.
The workbook opens slowly or asks about links on every open. Check for links to files on disconnected network drives. Use Edit Links to point to a local copy or break the link. Also check File > Options > Trust Center > Trust Center Settings > External Content for link security settings; changing these affects all workbooks, so review carefully.
Frequently Asked Questions
What does "this workbook contains links to one or more external sources" mean?
It means at least one formula, chart, or data connection in the workbook points to another file. Excel asks whether to update those values from the source.
Is it safe to click Update?
Only if you trust the source file and it is in its expected location. Updating pulls in data from that file; if the file is missing or malicious, you could get errors or unwanted content.
Can I stop the prompt without breaking links?
You can set Excel to not ask about links, but that is a global setting under Trust Center and affects all workbooks. Breaking the links is the cleaner fix for a single file.
Will breaking links delete my data?
No, it replaces formulas with their current calculated values. The data stays, but it will no longer update from the source.
Why does the link warning appear even when the source file is closed?
Excel still detects the reference in the workbook's formulas. It asks whether to try updating; if the source is closed, it may use the last saved values.
Does Excel for the web support Edit Links?
Excel for the web has limited link management. For full control, open the workbook in desktop Excel.