Solved

Excel 2010 - using text in a cell to refer to a link path

Posted on 2015-01-06
8
48 Views
Last Modified: 2015-01-11
I have the typical problem of excel swapping paths in our links.  It is getting really frustrating.

I am wondering if there is a way to get the value of a cell into the formula for the link.

Please see the attached image.

TIA
excel-links.jpg
0
Comment
Question by:gpchicago08
  • 5
  • 2
8 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40533429
Use the Indirect function, e.g.

=INDIRECT(a11)

This will return the same as

=X:\INTRANET.FILES\01_Human Resources (etc)!C5
0
 

Author Comment

by:gpchicago08
ID: 40533432
INDIRECT needs the file link to be open.  This won't work.
0
 

Author Comment

by:gpchicago08
ID: 40533447
What about getting a constant from Name Manager into the link formula?

LinkPath=X:\INTRANET.FILES\01_Human Resources\[GP-ProjectList.xlsm]Active Projects

How can I get this constant into the cell

='X:\INTRANET.FILES\01_Human Resources\[GP-ProjectList.xlsm]Active Projects'!C5
=LinkPath!C5  <---???
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40533482
You can't. You'll have to use code, INDIRECT with open workbooks, or use an add-in like Morefunc.xll

Can you not just use the Edit Links dialog?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:gpchicago08
ID: 40533486
Can code be written to fix the links?  I can then add it to a button and the world will be right again!
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40533568
How would it know what to fix them to? It's probably as easy to use the Edit Links dialog, or a simple Find/Replace.
0
 

Accepted Solution

by:
gpchicago08 earned 0 total points
ID: 40533646
I don't want the users to have to do it.  It can be hard-coded into the button.  It would be used just to fix the links.
0
 

Author Closing Comment

by:gpchicago08
ID: 40542926
I obviously can't do this simply.  I'm going to start a new question for the button programming.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now