Share via

Excel - Find Broken Links

Paul Dennis 60 Reputation points
2025-09-01T15:18:04.34+00:00

I have merged 2 workbooks by moving all the sheets from workbook A to workbook B.

I have used the Name Manager and corrected all the links and gone into all the pivots and checked they are correct.

Excel says I have no external links so everything should be fine but it's not.

Since I want all the pivots to be correct (there are pivots on multiple sheets, 9 sheets in total) on entry to these sheets I have the command "ActiveWorkbook.RefreshAll"

I now get 9 messages saying "Sorry, we couldn't find ".................file.xlsm". Is it possible it was moved, renamed or deleted?"

I have tried the Find command and it finds nothing.

How else can I find the cell which has the problem ?

Microsoft 365 and Office | Excel | For home | Windows

Answer accepted by question author

  1. Emmanuel Santana 38,850 Reputation points Independent Advisor
    2025-09-01T15:56:17.53+00:00

    Hello. Did any of the sheets originally use Power Query, or were any PivotTables based on external workbook ranges before merging?

    Here’s what you can try:

    1. Press Alt + F11 to open the VBA Editor, then press Ctrl + G to open the Immediate Window.
    2. Paste and run this code:
         For Each pc In ActiveWorkbook.PivotCaches: Debug.Print pc.SourceData, pc.Connection: Next
      
      → This will list the source and connection of every PivotTable. If one of them still references the old file, you’ll see it here.
    3. Also try this to scan for embedded charts or objects still linked to external data:
         For Each ws In Worksheets
             For Each sh In ws.Shapes
                 If sh.Type = msoChart Then Debug.Print sh.Chart.SeriesCollection(1).Formula
             Next
         Next
      
      → This will identify any charts pulling formulas from another workbook.

    After you do this, it should reveal any hidden or leftover links that Excel isn’t surfacing in Name Manager or Find. Once located, you can update or delete the source manually.

    Let me know what turns up.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.