Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking files with variable directory path

To whom it may concern,

I am having trouble linking 2 files via vlookup function. The relevant
file structure is:
1. D:\NSW BURT Tool\1.BDM BURT files\1.Bus Unit Tracking Sheet.xls
2. D:\NSW BURT Tool\1.BDM BURT files\BUP Reference Files\BDM BURT_Last
Month.xls

If I move it into, for example, C:\My Documents (to become C:\My
Documents\NSW BURT Tool\.... etc), The information link from 1. to 2.
is maintained (i.e. under EditLinks the file structure is C:\My
Documents\NSW BURT Tool\1.BDM BURT files\BUP Reference Files\2.
However, the link wher 2. needs to get info from 1. does not change. It
recognises the drive change, but does not recognise the added My
Documents folder. Under Edit/Links, the 2. file is trying to link to
C:\NSW BURT Tool\1.BDM BURT files\1.

A working example of the current formula is:

vlookup($a4,'D:\NSW BURT Tool\1.BDM BURT files\[1.]'!$C:$D,2,false)

I need the file structure to remain solid within the NSW BURT Tool
folder, regardless of which drive or what file structure is infront of
it. I.e. I need the "D:\" to be variable based on where NSW BURT Tool
is placed.

How can I do this?

I hope this makes some sense.

Thank you in advance for your assistance.

Regards

Peter

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Linking files with variable directory path

Excel doesn't support variable links to closed workbooks to any great
extent. Perhaps you could use the workbook_open event to update the
formulas based on the location of the file containing the formula.

--
Regards,
Tom Ogilvy

wrote in message
oups.com...
To whom it may concern,

I am having trouble linking 2 files via vlookup function. The relevant
file structure is:
1. D:\NSW BURT Tool\1.BDM BURT files\1.Bus Unit Tracking Sheet.xls
2. D:\NSW BURT Tool\1.BDM BURT files\BUP Reference Files\BDM BURT_Last
Month.xls

If I move it into, for example, C:\My Documents (to become C:\My
Documents\NSW BURT Tool\.... etc), The information link from 1. to 2.
is maintained (i.e. under EditLinks the file structure is C:\My
Documents\NSW BURT Tool\1.BDM BURT files\BUP Reference Files\2.
However, the link wher 2. needs to get info from 1. does not change. It
recognises the drive change, but does not recognise the added My
Documents folder. Under Edit/Links, the 2. file is trying to link to
C:\NSW BURT Tool\1.BDM BURT files\1.

A working example of the current formula is:

vlookup($a4,'D:\NSW BURT Tool\1.BDM BURT files\[1.]'!$C:$D,2,false)

I need the file structure to remain solid within the NSW BURT Tool
folder, regardless of which drive or what file structure is infront of
it. I.e. I need the "D:\" to be variable based on where NSW BURT Tool
is placed.

How can I do this?

I hope this makes some sense.

Thank you in advance for your assistance.

Regards

Peter



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002: Can I reveal file path of the other linking files ? Mr. Low Excel Discussion (Misc queries) 0 July 24th 09 05:23 PM
Dynamic directory path Newbie Excel Discussion (Misc queries) 1 April 24th 06 04:56 PM
Target directory & Path Param Excel Worksheet Functions 0 March 28th 06 01:52 AM
Set The Directory to the Current WB Path Richy Excel Programming 2 February 29th 04 06:54 PM
Check if directory empty OR no of files in directory. Michael Beckinsale Excel Programming 2 December 4th 03 10:12 PM


All times are GMT +1. The time now is 01:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"