Linking info into Excel worksheet from an Excel Template

I have a template that someone will be entering data into and saving/renaming it to a workbook.  Then a different person will open up another workbook that I want to link some of the cells from the first workbook to the new workbook.  Since employee 1 will rename the workbook, how do I easily update the link in workbook?  The first template will be used over and over and saved a new name each time.  What I don't get is how to update the new workbook link each time.  The cells will remain the same however.  This needs to be relatively simple since the user(s) are not computer savvy.  The first employee will notify the second employee the name of the new workbook name.  What would be great is if there was a way for the second employee to type the name of the first workbook in a cell and voila...the links would update.
LVL 4
Sue TaylorProject ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dlmilleCommented:
I thought long and hard about what you described and seems like too many moving parts to manage, IMHO.

However, It MIGHT be easier to have a macro save the particular range you're interested in sharing to another workbook then have all the templates initially look at THAT workbook (you can initially set that file up, manually.  No need for updating links and a macro would open THAT workbook, replace the range and save it.

So, in the template a button could be used to "Load" that range, then another button (or BeforeClose macro) could update that range in THAT workbook.

Alternatively, the workbook_open event could fire in  the newly created file from template and could check for a particular filename in a particular path and if it exists, it sets the links to that path\file.  That way when someone saves their file to that path\file, the next open by others would point to the right file.


FINALLY, the last alternative is to have a button to prompt the user for the path\filename of the workbook it needs to link to, then have the VBA code update all links from where they currently are to that revised path\filename.  This might be the ticket and seems fairly straightforward.

What do you think of these approaches?  Let me know which one you find appealing and post a dummy template I can work with and I can sort it for you.

Dave
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sue TaylorProject ManagerAuthor Commented:
I like the last option.....button to prompt the user for the path\filename of the workbook it needs to link to.

I don't have these templates created yet.  I was just thinking outloud how to do it before I created them.  I wouldn't know the VBA code for this and would need help with that.

Thanks, Dave
0
Sue TaylorProject ManagerAuthor Commented:
I'll probably have to post this again once I start working on these Excel spreadsheets so you can see the actual files and data I'm working with.

Thanks so much for your insight, Dave, and I hope you keep an eye out for that post in the next few weeks. :-)
0
dlmilleCommented:
Great.  Be sure to post here with the link to your next related post.  I'll be teed up at that point.

Dave
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.