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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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