Auto Update of Source File Name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using a workbook that has many links to another file as below.
Unfortunately the source file name changes each day, with the new source file
name being based on its creation date. How can I enter a function that will
automatically update the file name (in bold) and takes into account that the
source file name will be based on the previous working days date.



='[041107.xls]Front sheet'!$H$10
 
Instead of ='[041107.xls]Front sheet'!$H$10

Let's put 041107.xls in cell A1 and then use:

=INDIRECT("'[" & $A$1 & "]Front sheet'!$H$10")


If we do this for all formulas having this kind of external link, then they
will all refer to cell $A$1 in the current worksheet. This means that
changing $A$1 will re-reference all your linked formulas at once.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top