+ Reply to Thread
Results 1 to 4 of 4

Get Relative File Path: Advanced Workbook Linking.

  1. #1
    Registered User
    Join Date
    02-14-2008
    Posts
    22

    Get Relative File Path: Advanced Workbook Linking.

    This might be a little off topic, but I'll ask anyway.

    I work on multiple workbooks. They all calculate a lot of functions and I am forced to create multiple workbooks to do these calculations. Linking to other workbooks basically displays the results of workbook1 and works from there.

    But...

    I need to keep an overview of these files, so I store them in different folders all within the same 'master' folder. So let's say: master folder is FolderMaster, and this contains folderA, folderB, folderC. FolderA contains workbookA1, workbookA2; folderB contains workbookB1, workbookC2 and finally folderC contains workbookC1 and workbookC2.

    Suppose that this hierarchy might change. Moving eg workbook A2 to folderB. This would cause a #REF.

    So I thought: organise your hierarchy in a 'master workbook' and store all paths to the individual files in a worksheet. If I link to a specific folder I do not directly link to the actual folder, but would use INDIRECT and grap the filepath from the masterworkbook. If the path to a workbook change I do not have to update all individual links, but only change the path in the masterworkbook. Right?

    But how is the big one here. How do you formulate you path to a file? It can not be the entire file path since that's variable... (sometimes 'hd:User1:....'; sometimes 'HD:User2'...")

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    You may find an answer on this previous post - post #6 has got an answer

    http://www.excelforum.com/showthread.php?t=633248
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    02-14-2008
    Posts
    22
    Yes, indeed, never thought it would be that easy!

    Thank you very much.

    What I now do is to combine some functions.
    I basically ask in the MasterBook to give the path of the MasterBook, using this one:
    http://office.microsoft.com/en-us/ex...030101033.aspx

    I manually add the 'relative' path to another workbook, eg ":folder1:subfolder:...", concanate et voila the full path to the specific file, very cool and handy.

    Thanks guys!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to hear you got it fixed - thanks for the feedback

+ 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