+ Reply to Thread
Results 1 to 2 of 2

External Workbook Link with Dynamic Name

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    External Workbook Link with Dynamic Name

    I'm trying have a cell pull data from a external workbook using a formula with the filename being the date the report was generated.

    ='C:\Reports\[2009-01-12.xls]Sheet1'!B9

    My problem is that i'm trying have the filepath automatically updated each day. so tomorrow it'll be

    ='C:\Reports\[2009-01-13.xls]Sheet1'!B9

    I have tried using year(), month(), day() functions and concatenating it as a string then tried using the indirect() function, but no luck, i keep getting a #REF. Has anybody here had any success with this, or know how to get it work without using macros?

    Thanks,
    Adam
    Last edited by AdamParker; 01-13-2009 at 01:54 PM. Reason: Solved

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi Adam

    INDIRECT will only work with an external workbook if that workbook is open. An alternative might be to download the morefunc add-in (try Googling 'morefunc') which will give you access to the INDIRECT.EXT which will work with closed workbooks. Failing that you would need to go into Edit>Links and update the links manually (eg if you have a lot to do). You could automate this using a macro if you wished.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1