ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Linking to Workbooks that Change Name Daily (https://www.excelbanter.com/excel-worksheet-functions/125250-linking-workbooks-change-name-daily.html)

pwk

Linking to Workbooks that Change Name Daily
 
I am trying to link to another workbook to extract data daily. The
problem is the page name changes on a daily basis. Can I use wildcards

to do this? Maybe there's another way. Here are the references:

'[DOC - Daily Composite.xls]142007, 1'!$F$381


'[DOC - Daily Composite.xls]742996, 1'!$F$381


Thanks!


Dave Peterson

Linking to Workbooks that Change Name Daily
 
The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

pwk wrote:

I am trying to link to another workbook to extract data daily. The
problem is the page name changes on a daily basis. Can I use wildcards

to do this? Maybe there's another way. Here are the references:

'[DOC - Daily Composite.xls]142007, 1'!$F$381

'[DOC - Daily Composite.xls]742996, 1'!$F$381

Thanks!


--

Dave Peterson

pwk

Linking to Workbooks that Change Name Daily
 
Could you please give me an example of the formula. The formula I'm
using the first day is:

='[DOC - Daily Composite.xls]142007, 1'!$E$381&"/"&'[DOC - Daily
Composite.xls]142007, 1'!$F$381 Giving me a result of E381/F381

If the page name changes the next day to: DOC - Daily
Composite.xls]2142007, 1

How can I access it without writing a new formula. Using wild-cards
like this doesn't work:

DOC - Daily Composite.xls]*2007, 1

Any Help would be appreciated




Peterson wrote:
The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

pwk wrote:

I am trying to link to another workbook to extract data daily. The
problem is the page name changes on a daily basis. Can I use wildcards

to do this? Maybe there's another way. Here are the references:

'[DOC - Daily Composite.xls]142007, 1'!$F$381

'[DOC - Daily Composite.xls]742996, 1'!$F$381

Thanks!


--

Dave Peterson



undrline via OfficeKB.com

Linking to Workbooks that Change Name Daily
 
Is there a pattern to the change? 142007, 2142007, 4142007, 6142007 or
somesuch?
If not, do all the formulae access just the one file, or are there multiple
files?

I believe Excel takes file names as a string, so you could probably open the
file, tell Excel not to update, change the name of "setting cell" (A1, in
this example), then update the linkage:
"[DOC - Daily Composite.xls]"&A1&"2007"


pwk wrote:
Could you please give me an example of the formula. The formula I'm
using the first day is:

='[DOC - Daily Composite.xls]142007, 1'!$E$381&"/"&'[DOC - Daily
Composite.xls]142007, 1'!$F$381 Giving me a result of E381/F381

If the page name changes the next day to: DOC - Daily
Composite.xls]2142007, 1

How can I access it without writing a new formula. Using wild-cards
like this doesn't work:

DOC - Daily Composite.xls]*2007, 1

Any Help would be appreciated

Peterson wrote:
The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

[quoted text clipped - 14 lines]

Thanks!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1



All times are GMT +1. The time now is 07:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com