+ Reply to Thread
Results 1 to 7 of 7

Link to spreadsheet based on cell content

  1. #1
    Registered User
    Join Date
    02-27-2004
    Posts
    17

    Link to spreadsheet based on cell content

    Hi,

    I'm sure this has been answered but I can't think of a good way of wording the search!

    I'm setting up some master / slave spreadsheets but the names of the spreadsheets change quite regularly (don't you love high staff turnover?) so rather than update all the links I want to set up the master spreadsheet to look up the spreadheet name from a cell.

    Eg

    Spreadhseet names:
    Dave, John, Sarah

    In the Master, rather than:
    ='John.xls'!A10

    I want:
    ='A1.xls'!A10

    So that all I have to do is change the name in A1 of the new spreadsheet I want it to link to (eg John leaves and the team gets a new rep called Keith. I save a new spreadsheet call Keith and type Keith into A1 of the Master and it links to that spreadhseet rather than John)

    It's late and I've been doing various spreadsheets for 9 hours now, so excuse my poor attempt at an explanation!

    thanks

    NOTE:I've edited this to add the .xls extension to the example
    Last edited by japper; 09-27-2007 at 08:22 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this help

    =INDIRECT(A1&"!A10")

    Where A1 = a Sheet tab name

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-27-2004
    Posts
    17
    Not quite- that would work if it was a worksheet but this is linking to seperate workbooks. John.xls; sarah.xls etc.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    There is no mention of workbooks in your inital post.

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-27-2004
    Posts
    17
    After your post I realised I'd called them 'Spreadsheets' rather than 'Workbooks' so I edited it to show the xls. extension and put a note at the bottom.

    As I said- it had been a long day- apologies for the confusion.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this link is what your after. You need to download the add-in

    http://www.dailydoseofexcel.com/arch...sed-workbooks/

    VBA Noob

  7. #7
    Registered User
    Join Date
    02-27-2004
    Posts
    17
    Thanks- I think that will do it. Looks like it might be quite slow as this is going to have to pull info from over 100 Workbooks :o(

+ 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