+ Reply to Thread
Results 1 to 3 of 3

Populate cells with data from a different file named in another cell

  1. #1
    Registered User
    Join Date
    12-10-2010
    Location
    Idaho, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Populate cells with data from a different file named in another cell

    I am not familiar with macros or VBA. I am a basic Excel 2003 user.
    I know how to populate a cell with data from another spreadsheet using a hyperlink. However, I want this to be dynamic and automatic. For example, I'm working in spreadsheet one.xls . When entering the name of spreadsheet two.xls in cell A1 I want cells B1 and C2 (or any other cell) to be automatically populated with the specified data from the named file (two.xls). It would be even better if I could leave off the .xls file extension when entering the file name into cell A1. Is there a way to do all of this? Part? None?

    Many Thanks!!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate cells with data from a different file named in another cell

    If the files are already open in the background, you can do this with the INDIRECT() function right in the cells B1 and C2.

    INDIRECT() doesn't work on closed workbooks. If this is a MUST, then you'll have to install more functionality into your Excel program.

    The ADD-IN is called MoreFunc...read all about it here:
    http://xcell05.free.fr/morefunc/english/

    Download and install it from here:
    http://download.cnet.com/Morefunc/30...-10423159.html

    Go into TOOLS > ADDINS and activate MoreFunc.

    Now you have many, many new functions available to you. Any place you used INDIRECT, now use INDIRECT.EXT instead and it will work on closed workbooks. Only people with the same installed ADD-IN will be able to use your sheet.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-10-2010
    Location
    Idaho, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Populate cells with data from a different file named in another cell

    I installed more functions and messed with indirect and indirect.exp but don't see how it can help me. I may need to provide greater detail into my query. I have attached a small excel sheet to illustrate what I want to do.

    Thank you very much for spending your time on my question!
    Attached Files Attached Files

+ 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