Forum Discussion

ThomasRA4's avatar
ThomasRA4
Copper Contributor
Mar 28, 2023

Linking between workbooks

I have a collection of a dozen workbooks, all residing in the same directory, with many links between them.  Some are very large, so large that placing all the content within a single workbook would be less practical.

 

Because the number of rows is ever-growing, I cannot have a reliable system using any fixed range of cells for such references.  But of course referencing entire columns can be very slow, so I had been using dynamic ranges, experimenting with defining the size of the range in both the source and target workbooks, both as names or as a cell reference in a hidden sheet.  All of these methods have various issues and limits.

 

I landed on using Structured Tables as a more suitable method, and it indeed works very nicely.  Speed is very good, and of course the reference formulae are simpler and easy to read.  But now each time I open a workbook, I get an error, "We can't update some of the links in your workbook right now."

 

I had been under the impression that one of the reasons to switch to Structured Tables was specifically to avoid this error, which is easily avoided using direct cell references.  I'm wondering if it has to do with my formatting of the references, or if there's some method, such as still using direct cell references ($A:$A) on a structured table, which would get us around this error?

 

When viewing the Edit Links dialog, I can see it is reporting "Error:  Worksheet not found" for some of the links.  But as noted, all workbooks are located within the same directory, and the correct "Location" is listed when clicking on each source.  If I click "Update Values", it throws up a dialog with a list of sheets in each source, and once selected, it updates just fine.  Likewise, if I click "Open source", the source opens just fine, meaning any error stating the worksheet is not found is not correct.

 

Thanks!

5 Replies

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor
    Would it be possible for you to create (and then share with us) a set of two files with just enough bogus data that exhibit this behavior? So file A contains the table with source data and file B contains a formula (or more) that link to file A and show the sheet not found issue.
    • ThomasRA4's avatar
      ThomasRA4
      Copper Contributor
      Thank you for your quick response on this, and sorry it took me so long to prepare a demo, but there were other issues I wanted to be sure were resolved before pursuing this further.

      I will attach two workbooks, both stripped down to just one portion of one sheet, and each containing a structured table. Dump both into the same directory, and then try to open the file "accounts demo.xlsx" first. You will see it tries to pull data from "projects demo.xlsx". Even if you update the path to the file, you will note it does not properly pull in this data without also opening the file "projects demo.xlsx". If you try to simply use Queries & Connections / Edit Links / Update Values, you will get an "OK" response, but the values will not update.

      The goal is managing a system of two dozen interconnected workbooks, some of which are very large and contain too much data to reasonably keep them all opening while editing just one file. I am looking for the best system to make this work, if I have chosen a poor path, here.

Resources