+ Reply to Thread
Results 1 to 3 of 3

Variable File Name Link

  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    Southeast Michigan
    MS-Off Ver
    Excel 2007
    Posts
    1

    Variable File Name Link

    Is there a way to embed a variable filename for a cell link to another excel file? In a monthly report spreadsheet I would like to automatically pull data from the previous month. I can determine the month name (i.e. January, February, etc.) but not sure how to use this in the link to pull from the correct file. Any ideas?

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Variable File Name Link

    Hi and welcome to the board

    maybe the INDIRECT function s what you are looking for?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Variable File Name Link

    INDIRECT may well work but note the Function requires the target file be open else error will be returned... if you have closed files you may want to check out Laurent Longre's morefunc.xll and specifically the INDIRECT.EXT function.

    Failing the above realistically you're looking at VBA...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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