+ Reply to Thread
Results 1 to 5 of 5

Have a cell that is linked to another workbook change

  1. #1
    Registered User
    Join Date
    04-12-2019
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    64

    Have a cell that is linked to another workbook change

    I currently have a cell that references to a workbook by:

    ='P:\Tools\Transient Pickup Tool\ATLDO\ATLDO Pickup Tool 1.0.5.xlsm'!DaysLoaded

    I would like to make it so that ATLDO is just referring to cell A2 so something like:

    ='P:\Tools\Transient Pickup Tool\" & A2 & "\XXXXX Pickup Tool 1.0.5.xlsm'!DaysLoaded

    I would like to be able to drag it down a list without having to change each one individually. Where XXXXX is I would be referring to a cell. So 2 locations I'm trying to change.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Have a cell that is linked to another workbook change

    You would use INDIRECT to do that but I don't know if it's happy to work with closed workbooks, for example.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-12-2019
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    64

    Re: Have a cell that is linked to another workbook change

    I will need the file to be closed, I'm trying to get 108 files at once and don't want them all to be open. If I did want to use INDIRECT what would that function look like?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,826

    Re: Have a cell that is linked to another workbook change

    According to the latest help file https://support.office.com/en-us/art...1-92b6306fa261 INDIRECT() only works if the file is open
    Quote Originally Posted by Excel help
    If ref_text refers to another workbook (an external reference), the other workbook must be open. If the source workbook is not open, INDIRECT returns the #REF! error value.
    What exactly are you doing here (other than pulling data from 100 different files)? What does each file look like? We might have better suggestions if we understand the context for you question.

    Are you willing to entertain the possibility of combining all 108 files into one file? I don't work with databases, but it often seems that, in the hands of someone who knows databases, the suggestion is to compile all the data into one big database (Get and Transform can usually do this fairly easily), then query the database (a lookup function or similar).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Have a cell that is linked to another workbook change

    One possibility is to use VBA to dynamically write the formulas for you to avoid INDIRECT, but I would have to have a sample file to write it specifically for your case.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 1
    Last Post: 08-12-2014, 03:07 PM
  2. [SOLVED] Using a cell-linked text box to detect a calculated cell change and set value of scrollbar
    By darwin003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2013, 08:29 PM
  3. [SOLVED] Change linked cell in check box
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2012, 03:12 AM
  4. Replies: 2
    Last Post: 06-20-2012, 09:08 PM
  5. VBA to change Linked Workbook Source
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2010, 01:58 PM
  6. How do I change part of a formula linked to another workbook?
    By retiredjhawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2007, 03:44 PM
  7. Using linked cell to change value in combo box
    By eugene in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2006, 12:25 PM

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