+ Reply to Thread
Results 1 to 6 of 6

External file relocated - can't get data

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    External file relocated - can't get data

    I have a spreadsheet that reads data from another xls file on another drive. Let's say there are 50 cells in my file that are reading 10 cells each from 5 external files.

    At the end of the year, the external file(s) is moved/removed (or archived - zipped) and replaced with a new one with different file names for the new year.

    I would like to keep the value of the data in my spreadsheet, even after the external files have been moved/removed. I don't want the cell formulae to keep looking for the external files. Once it gets the external data the first time, I just want the value in the cell.

    This would also shorten the time it takes to open the file.

    Any ideas?

  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: External file relocated - can't get data

    That's not a formula, that's a pretty hefty VBA routine. Post your question in The Programming Forum and you'll need to expand your explanation to 100% of the details.

    Anyone attempting to help with this would need to know everything you're doing.
    1) The existing sheetnames and cell references
    2) The existing formulas in your local wb you're using to get the remote data
    3) The current filepath structure
    4) What you want to happen when the file goes missing, exactly what you want the macro to do in terms of "looking"
    5) How the macro is activated to know it needs to go get new info from new locations/filenames
    _________________
    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
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: External file relocated - can't get data

    Or just copy the cells and paste as values over the original formulas.
    Entia non sunt multiplicanda sine necessitate

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

    Re: External file relocated - can't get data

    Quote Originally Posted by shg View Post
    Or just copy the cells and paste as values over the original formulas.
    Of course, I completely misread the end of the question. (*shame*)

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: External file relocated - can't get data

    Maybe, maybe not ...

  6. #6
    Registered User
    Join Date
    07-07-2009
    Location
    Orange County, California
    MS-Off Ver
    Microsoft 365; Excel 2010
    Posts
    40

    Re: External file relocated - can't get data

    At the end of the year, the external file(s) is moved/removed (or archived - zipped) and replaced with a new one with different file names for the new year.

    IF IT ONLY FOR "ONCE A YEAR", THEN YOU CAN DO "BREAK LINKS" AND SAVE FILE AS "XXX".

+ 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