Dinamic Sheet refrence outside the working Workbook

Googamanga

New Member
Joined
Jun 23, 2008
Messages
1
two workbooks with identical sheet names

Workbooks: Source, Target
Sheets eg: May, June, ...

[Target]June has a formula something like
index(F:\documents\[Source]June!$A$1:$D$4, match(target_id,source_id,0))

When July comes around, i would like to copy the June sheet in Target and create July. the fun part is that i would like all the formulas to automaticaly point at July in the Source workbook. (given that the July sheet is already created in the Source book)

i know how to work with sheet names using CELL("filename")

i was planning on using INDIRECT() but apperantly it doesn't like to work with closed source files

i heard about INDIRECT.ex addon (or something close to that name) that lets you work with closed source files, but the target workbook will be accessed and maintained by other users with no such addon....

So... (finaly the question) is there a way to update a refrences to a closed source file based on the target sheet name?

(did i confuse everyone???)
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Welcome to the Board!

Unfortunately without using the indirect() function you would need to use the indirect.ext() from the morefunc add-in, but as you said not everyone will have that add-in, so you could 1) add it to everyone's computers or 2) Use a macro to update the links. If you go the macro route, I would start by recording a macro that mimics you changing the link and modifying the code from there. Because if you put a macro in the workbook it would be live for all people that open that workbook.

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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