+ Reply to Thread
Results 1 to 6 of 6

Using Indirect to link dynamically with another work book

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Using Indirect to link dynamically with another work book

    Hi all,

    I am try to link to another workbook. Easy enough if the book is known.

    However, I need the user to select the location of the book, which then updates the sheet.

    Assume H2 is the location and name of the workbook (e.g. C:\Directory\Workbook.xls), I tried:

    Please Login or Register  to view this content.
    This isn't working and i'm probably missing something minor.

    Can someone suggest the correct formula plz

    Cheers

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Using Indirect to link dynamically with another work book

    Hi,

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The trick here is that the format should look like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    So you have to separate the directory and the workbook name from one another, manually insert the apostrophes and brackets, and then concatenate the string back to the correct format.

    Note that this is an array formula, and requires Ctrl + Shift + Enter as opposed to just Enter, otherwise you will receive an error in the cell.

    I hope this helps

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using Indirect to link dynamically with another work book

    INDIRECT() only works on open workbooks, not with closed workbooks. If your WB will be closed, then try using the Morefunc add-in (google for the download)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Using Indirect to link dynamically with another work book

    Okay, thanks AJRyan88, and FDibbins. Take a rep for your responses!

    The formula provided will be enough to do what I need.

    Also i'm aware that indirect is useable only on open books, but both books are almost always opened together.

    Cheers

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using Indirect to link dynamically with another work book

    Happy to help and thanks for the feedback

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Using Indirect to link dynamically with another work book

    You're welcome!

    Just as a note on your last statement...you could alter the formula to see if the other workbook is open:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please don't forget to mark this thread as solved

    Have a great day

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Indirect lookup to diffent work book with a sumif
    By namluke in forum Excel General
    Replies: 3
    Last Post: 12-22-2013, 04:46 AM
  2. link of 2 work book based on date
    By bluerose.12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 07:25 AM
  3. Replies: 0
    Last Post: 04-30-2013, 10:29 AM
  4. Drill Down Via Hyper Link to New Work Book
    By Lexx Diggler in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-04-2011, 08:24 PM
  5. link worksheet to another work book
    By summer2010 in forum Excel General
    Replies: 2
    Last Post: 10-04-2010, 05:47 AM

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