Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Word4Dummies
 
Posts: n/a
Default Indirect( ) function loosing values when spreadsheets are closed

When using the indirect( ) function that points to cells referring to
external workbooks I get a #REF error when the external spreadsheets are
closed.

e.g. Cell A1 of workbook "testing.xls" has the following text string in it:
'test1.xls'!sheet1$A$1 , in cell A2 of "testing.xls" I have the following:
=INDIRECT(A1), the value returned is 4000 (the same as the value in A1 of
workbook test1.xls.) The problem is tha the value is only returned when
test1.xls is open, otherwise #REF is returned

Please help.
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Yes, it's a fact of life, Indirect() does *not* work on closed WBs.
You'll have to make direct links to the other WB, in order to return the
contents of the cell in question, such as:

=[test1.xls]Sheet1!$A$1
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Word4Dummies" wrote in message
...
When using the indirect( ) function that points to cells referring to
external workbooks I get a #REF error when the external spreadsheets are
closed.

e.g. Cell A1 of workbook "testing.xls" has the following text string in

it:
'test1.xls'!sheet1$A$1 , in cell A2 of "testing.xls" I have the following:
=INDIRECT(A1), the value returned is 4000 (the same as the value in A1 of
workbook test1.xls.) The problem is tha the value is only returned when
test1.xls is open, otherwise #REF is returned

Please help.


  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

I myself use 2 different solutions, when I need to lookup data from another
workbook:

1) I create a mirror sheet, using simple links, and use this mirror sheet
as lookup source. Usually I hide the mirror sheet from user.

2) When it's enough when I get data from source only when I open the
worksheet, i.e. no real-time connection is needed, then I use ODBC query to
download all needed data into separate (hidden) worksheet, and again use
this hidden sheet as source instead of external workbook. This solution
allows limit downloaded data, when there is a need for this, and as the
query result table doesn't contain any formulas, the workbook performance is
increased. When I feel, that user may need refresh query data during
session, then I place a command button on some sheet, which starts query(es)
refreshing procedure.


Arvi Laanemets


"Word4Dummies" wrote in message
...
When using the indirect( ) function that points to cells referring to
external workbooks I get a #REF error when the external spreadsheets are
closed.

e.g. Cell A1 of workbook "testing.xls" has the following text string in

it:
'test1.xls'!sheet1$A$1 , in cell A2 of "testing.xls" I have the following:
=INDIRECT(A1), the value returned is 4000 (the same as the value in A1 of
workbook test1.xls.) The problem is tha the value is only returned when
test1.xls is open, otherwise #REF is returned

Please help.



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
LOOKUP FUNCTION WITH SUMS VALUES Jamesy Excel Discussion (Misc queries) 3 January 10th 05 03:03 PM
Offset, indirect, match function limitation on linked worksheets. NewAlgier Excel Worksheet Functions 1 December 6th 04 11:55 PM
Variable values in Index function mlkpied Excel Worksheet Functions 6 December 6th 04 11:38 PM
Finding real values of a function ruralkansas Excel Worksheet Functions 1 October 30th 04 09:14 AM
need to save values from a function before it changes Ron Excel Worksheet Functions 1 October 29th 04 06:29 AM


All times are GMT +1. The time now is 06:39 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"