Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
my my is offline
external usenet poster
 
Posts: 12
Default variable substitution in a formula linking to external workbook

Hi,

I'm trying to link to an external workbook. Let's say the formula is:

G:\2007\2007 Jun\blah.xls

I would like to be able to change "Jun" by referencing a cell. I've read
that the Indirect function cannot be used to reference an external workbook
without it being open. I can't open my external workbook b/c it has the same
file name as the one I'm working on (but they are located in difference
folders, thus, needing to change "Jun" each month). Is there a way to do
this?

Thanks in advance for any help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default variable substitution in a formula linking to external workbook

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

my wrote:

Hi,

I'm trying to link to an external workbook. Let's say the formula is:

G:\2007\2007 Jun\blah.xls

I would like to be able to change "Jun" by referencing a cell. I've read
that the Indirect function cannot be used to reference an external workbook
without it being open. I can't open my external workbook b/c it has the same
file name as the one I'm working on (but they are located in difference
folders, thus, needing to change "Jun" each month). Is there a way to do
this?

Thanks in advance for any help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default variable substitution in a formula linking to external workbook

I downloaded the formulas, but I am getting an error. I can't see the
mistake in using the INDIRECT.EXT formula. Can anyone with experience
tell me by looking why this would be incorrect?

=INDIRECT.EXT("'W:\Transportation\Overseas Operatations\FCA\FCA
Reports and Updates\FCA In Transit Reports\["&TEXT(B2,"yyyy.mm.dd")&"
FCA in transit report SZH.xls]Po List'!$A$3")

It works when the reference sheet is open, but returns the #VALUE!
error when I close that sheet...

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
variable substitution in a formula NHRunner Excel Discussion (Misc queries) 5 May 11th 07 01:56 PM
External reference with variable workbook name? KenV New Users to Excel 4 February 10th 06 09:48 PM
Dynamic External Workbook Formula Co-op Bank Excel Worksheet Functions 2 December 6th 05 05:02 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
Linking formula to external spreadsheet Tunde Excel Discussion (Misc queries) 1 March 1st 05 03:05 AM


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

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

About Us

"It's about Microsoft Excel"