INDIRECT function

G

Guest

Guest
The INDIRECT function brings up a #REF! error if you try and reference a workbook that is closed, however it works fine if the workbook is open. Is there anyway around this problem?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You can find from the Excel 97 help that the workbook referenced by INDIRECT muse be open. I don't know whether Excel 2000 has any improvement on this.
 
Upvote 0
On 2002-02-25 07:05, Andrew XJ wrote:
You can find from the Excel 97 help that the workbook referenced by INDIRECT muse be open. I don't know whether Excel 2000 has any improvement on this.

No changes in XL2000. As always only absolute references to a closed worksheet will return a value.
 
Upvote 0
To solve this problem, i use Auto_Open() to open the workbooks referenced by INDIRECT and hide the workbooks. Use Auto_Close() to close them. And force Auto_Open() and Auto_Close() to run them. Is there any other more efficient way?
This message was edited by Andrew XJ on 2002-02-25 07:39
 
Upvote 0

Forum statistics

Threads
1,213,526
Messages
6,114,122
Members
448,550
Latest member
CAT RG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top