![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
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?
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
No. Not with INDIRECT.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Singapore
Posts: 77
|
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.
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Singapore
Posts: 77
|
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 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|