PC Review


Reply
Thread Tools Rate Thread

custom function closed workbooks

 
 
Cresta
Guest
Posts: n/a
 
      20th Nov 2008
Hello
I have the following custom function which works when all linked files are
open in the same excel session.
=Sum2DProduct('V:\CompanyName\Accounts.09\Budgets\[Rolling
budget.xlsm]P&L'!$C$8:$BB$8,E$8,'V:\CompanyName\Accounts.09\Budgets\[Rolling
budget.xlsm]P&L'!$BD$10:$BD$75,$BD11,'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$10:$BB$75)

When the files are closed excel returns #VALUE and the function does not
run. I have replaced the mapped drive letter with the full path but no change.

Is there a way of writing the address below so that the linked file does not
have to be open for excel to be happy and the function to run?

'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$8:$BB$8
or with named range
'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]'!Profit

Hope this makes sence.
Thanks

 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      20th Nov 2008
Corrected link

http://xcell05.free.fr/morefunc/english/index.htm
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Cresta" wrote:

> Hello
> I have the following custom function which works when all linked files are
> open in the same excel session.
> =Sum2DProduct('V:\CompanyName\Accounts.09\Budgets\[Rolling
> budget.xlsm]P&L'!$C$8:$BB$8,E$8,'V:\CompanyName\Accounts.09\Budgets\[Rolling
> budget.xlsm]P&L'!$BD$10:$BD$75,$BD11,'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$10:$BB$75)
>
> When the files are closed excel returns #VALUE and the function does not
> run. I have replaced the mapped drive letter with the full path but no change.
>
> Is there a way of writing the address below so that the linked file does not
> have to be open for excel to be happy and the function to run?
>
> 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$8:$BB$8
> or with named range
> 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]'!Profit
>
> Hope this makes sence.
> Thanks
>

 
Reply With Quote
 
Barb Reinhardt
Guest
Posts: n/a
 
      20th Nov 2008
I believe you'd need something like the Indirect.Ext functoin found in
MOREFUNC here.

http://xcell05.free.fr/english/
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Cresta" wrote:

> Hello
> I have the following custom function which works when all linked files are
> open in the same excel session.
> =Sum2DProduct('V:\CompanyName\Accounts.09\Budgets\[Rolling
> budget.xlsm]P&L'!$C$8:$BB$8,E$8,'V:\CompanyName\Accounts.09\Budgets\[Rolling
> budget.xlsm]P&L'!$BD$10:$BD$75,$BD11,'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$10:$BB$75)
>
> When the files are closed excel returns #VALUE and the function does not
> run. I have replaced the mapped drive letter with the full path but no change.
>
> Is there a way of writing the address below so that the linked file does not
> have to be open for excel to be happy and the function to run?
>
> 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$8:$BB$8
> or with named range
> 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]'!Profit
>
> Hope this makes sence.
> Thanks
>

 
Reply With Quote
 
Cresta
Guest
Posts: n/a
 
      20th Nov 2008
It sounds like the right function but the download link is out of action.
Typical.



"Barb Reinhardt" wrote:

> Corrected link
>
> http://xcell05.free.fr/morefunc/english/index.htm
> --
> HTH,
> Barb Reinhardt
>
> If this post was helpful to you, please click YES below.
>
>
>
> "Cresta" wrote:
>
> > Hello
> > I have the following custom function which works when all linked files are
> > open in the same excel session.
> > =Sum2DProduct('V:\CompanyName\Accounts.09\Budgets\[Rolling
> > budget.xlsm]P&L'!$C$8:$BB$8,E$8,'V:\CompanyName\Accounts.09\Budgets\[Rolling
> > budget.xlsm]P&L'!$BD$10:$BD$75,$BD11,'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$10:$BB$75)
> >
> > When the files are closed excel returns #VALUE and the function does not
> > run. I have replaced the mapped drive letter with the full path but no change.
> >
> > Is there a way of writing the address below so that the linked file does not
> > have to be open for excel to be happy and the function to run?
> >
> > 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]P&L'!$C$8:$BB$8
> > or with named range
> > 'V:\CompanyName\Accounts.09\Budgets\[Rolling budget.xlsm]'!Profit
> >
> > Hope this makes sence.
> > Thanks
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Function Problems when multiple workbooks are open Richard Wood Microsoft Excel Programming 1 21st Feb 2008 04:36 PM
Closed workbooks still appear in VBE? robotman Microsoft Excel Programming 18 13th Jun 2007 05:54 AM
Sharing a custom function bewteen workbooks =?Utf-8?B?TU1lc2FyY2g=?= Microsoft Excel Programming 1 12th Apr 2005 02:46 PM
How to access ranges in closed workbooks in custom functions Deepak Agarwal Microsoft Excel Programming 3 9th Jul 2004 01:59 PM
OFFSET function and closed workbooks Berry Simpson Microsoft Excel Worksheet Functions 0 15th Aug 2003 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:22 PM.