problems with indirect functions between workbooks

ashah235

New Member
Joined
Sep 5, 2002
Messages
7
when i write an indirect function in a summary workbook that goes takes data from another workbook, it always REF# out unless the other workbook is open. How can I solve this?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Chris Davison

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,790
Jim's right, it won't work on closed workbooks.

I suppose you could open your needed workbooks automatically *when* you open the workbook with the indirect functions :

just pop this in the workbook module in VBA :<PRE>

Private Sub Workbook_Open()
ChDir "C:WINDOWSDesktop"
Workbooks.Open FileName:="C:WINDOWSDesktopbarry.xls"
End Sub</PRE>

where barry.xls is the worksheet that you are applying the indirect function to and the desktop is the directory it's stored in,

obviously changing these appropriately

similarly, you could close them automatically with the worksheet.beforeclose or .beforesave events
too




_________________
Hope this helps,
Chris
:)
[Excel '97; Windows ME]
This message was edited by Chris Davison on 2002-09-06 11:45
 

Watch MrExcel Video

Forum statistics

Threads
1,129,593
Messages
5,637,294
Members
416,963
Latest member
zazama

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
Top