+ Reply to Thread
Results 1 to 2 of 2

pull file path from cell?

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    9

    pull file path from cell?

    I'm trying to do something that seems pointlessly simple, but I just can't seem to make it work.

    I have a sheet that has a file path in A1 and the file itself in A2. I am able to pull the two of them together to use in a formula but it just seems to display the path instead of actually using it. ="'"&A1&"["&A2&"]'"

    The other excel file that it is referencing is not open but on a remote network drive. I'd prefer to not have to open both sheets. There a simple method that I am just overlooking?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: pull file path from cell?

    1) The source workbook needs to be open for Excel formulas to be able to update the links automatically.
    2) You need to convert the text you've built into a valid Excel reference.
    Try this:
    Please Login or Register  to view this content.
    3) If you MUST pull data from closed workbooks, there are VBA alternatives on various websites.

    4) If you have direct access to the linked files, you can use: Data.Edit_Links...Update_Values to update the links.
    5) Excel does not recognize use of the INDIRECT function to be a link...So the source file would need to be opened for that kind of formula to work.

    Does that help?
    Last edited by Ron Coderre; 11-19-2014 at 05:05 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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] pass the file name written in a cell to the file path
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2014, 07:54 AM
  2. Variable .Attachment.Add path using Function to pull path from word table
    By aavelyn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2013, 10:07 PM
  3. [SOLVED] Get file path from a cell, run a check to see if the file has a specific sheet if yes copy
    By Martha44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2013, 03:35 AM
  4. Need a Dynamic file path to pull the numbers from different closed excel files
    By vishnu01445 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 11:59 AM
  5. Pull File name from string of path
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2012, 01:19 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