+ Reply to Thread
Results 1 to 4 of 4

Reference to external files

  1. #1
    Registered User
    Join Date
    09-20-2017
    Location
    stockholm
    MS-Off Ver
    2016
    Posts
    2

    Reference to external files

    Hi there,

    I'm currently working on an excel file where I will have to refer to quite a lot of external files. It is quite easy to type in the name of the external file manually, but as the number of files is high this could be tedious, so I'm looking for an other solution.
    Let me explain: the document in wihich the references will be already contains the names of the external files.
    For example, in D1 I want to refer to E1 of a file located at C:\Users\Myfolder\[filename], where [filename] is "what is written in A1"_"what is written in B1".xlsx
    in D2, I want to refer to E1 of "A2"_"B2".xlsx, and so on.
    Is it possible to set that up somehow?

    thanks for your advices!

  2. #2
    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,926

    Re: Reference to external files

    Hi, welcome to teh forum

    You could do this with INDIRECT, but that requires that the source file also be open
    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

  3. #3
    Registered User
    Join Date
    09-20-2017
    Location
    stockholm
    MS-Off Ver
    2016
    Posts
    2

    Re: Reference to external files

    Hi! Yes, I already found this function when looking for a solution on the internet. The fact that is requires the files to be open is not really practical, but I may try to put all the files in the same folder. Opening them should not be necessary anymore then.

    Thank you!

  4. #4
    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,926

    Re: Reference to external files

    Doesnt matter what folder they are in, they still need to be open

    Something else to try is the MoreFunc add-in
    http://www.ashishmathur.com/tag/morefunc/

+ 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. Index and Formula Reference to external files
    By scruz9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2016, 12:35 AM
  2. Replies: 0
    Last Post: 11-07-2011, 11:54 AM
  3. Excel 2007 : External Reference
    By Kallyn1027 in forum Excel General
    Replies: 1
    Last Post: 11-08-2010, 12:51 PM
  4. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  5. Replies: 2
    Last Post: 05-01-2009, 07:06 PM
  6. External Files
    By nicole0904 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 10:56 AM
  7. External Reference
    By Iain in forum Excel General
    Replies: 3
    Last Post: 02-08-2005, 03:06 PM

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