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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,489
Messages
5,837,657
Members
430,507
Latest member
TonyIbbs

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