Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jai
 
Posts: n/a
Default Link a cell to another workbook with a different path

VBA for Excel treats path names differently for the Workbooks open and close
methods on the one hand and for use in cell formulae to a cell value to
another in a different workbook.
As long as the two workbooks have the same path, there is no problem, simply
use =[filename.xls]sheetname!celladdress. But should a path name be required,
what do I do?
Also in the workbook properties, path and file names are distinct paths,
both read only. How do I update the path property?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you open workbook A, then create your formula that links to that workbook A,
you'll see how excel handles the path when you close workbook A.

And you update the path by saving the workbook to a different location. Same
kind of thing with the name--you have to save it with a different name.

Jai wrote:

VBA for Excel treats path names differently for the Workbooks open and close
methods on the one hand and for use in cell formulae to a cell value to
another in a different workbook.
As long as the two workbooks have the same path, there is no problem, simply
use =[filename.xls]sheetname!celladdress. But should a path name be required,
what do I do?
Also in the workbook properties, path and file names are distinct paths,
both read only. How do I update the path property?


--

Dave Peterson
  #3   Report Post  
Jai
 
Posts: n/a
Default

Thanks for your reply. I am able to save a link to a cell in another open
workbook and when that "Source" workbook is closed, then the link in the
destination workbook cell formula automatically changes to reflect the full
path and file name. However, if I am developing an application where the
source workbook is not yet there, but would be created at some point in the
future, there is apparantly no way for me to save the link to this yet to be
created workbook.

WHile my current problem has been nicely taken care of, I wonder whether
it is too much to ask for such a capability?

"Dave Peterson" wrote:

If you open workbook A, then create your formula that links to that workbook A,
you'll see how excel handles the path when you close workbook A.

And you update the path by saving the workbook to a different location. Same
kind of thing with the name--you have to save it with a different name.

Jai wrote:

VBA for Excel treats path names differently for the Workbooks open and close
methods on the one hand and for use in cell formulae to a cell value to
another in a different workbook.
As long as the two workbooks have the same path, there is no problem, simply
use =[filename.xls]sheetname!celladdress. But should a path name be required,
what do I do?
Also in the workbook properties, path and file names are distinct paths,
both read only. How do I update the path property?


--

Dave Peterson

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think I'd link to an always existing dummy workbook.

Then when the other workbook is actually created, I'd change the link
(edit|link) to point at the real one. (or fix the individual formula if you
have other links that can't be changed).

Jai wrote:

Thanks for your reply. I am able to save a link to a cell in another open
workbook and when that "Source" workbook is closed, then the link in the
destination workbook cell formula automatically changes to reflect the full
path and file name. However, if I am developing an application where the
source workbook is not yet there, but would be created at some point in the
future, there is apparantly no way for me to save the link to this yet to be
created workbook.

WHile my current problem has been nicely taken care of, I wonder whether
it is too much to ask for such a capability?

"Dave Peterson" wrote:

If you open workbook A, then create your formula that links to that workbook A,
you'll see how excel handles the path when you close workbook A.

And you update the path by saving the workbook to a different location. Same
kind of thing with the name--you have to save it with a different name.

Jai wrote:

VBA for Excel treats path names differently for the Workbooks open and close
methods on the one hand and for use in cell formulae to a cell value to
another in a different workbook.
As long as the two workbooks have the same path, there is no problem, simply
use =[filename.xls]sheetname!celladdress. But should a path name be required,
what do I do?
Also in the workbook properties, path and file names are distinct paths,
both read only. How do I update the path property?


--

Dave Peterson


--

Dave Peterson
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
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
How do I link one TEXT cell to others in a worksheet and workbook. HEATHERCOX Excel Worksheet Functions 1 April 19th 05 07:37 PM
Problems with hyperlinks Lynde Excel Discussion (Misc queries) 5 January 14th 05 08:39 PM
How do I link many cells to one particular cell? fish@divi Excel Discussion (Misc queries) 2 January 4th 05 11:00 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:08 AM.

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"