Solved

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

Posted on 2015-01-06
8
49 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel for Mac - How make those Tabs larger? 2 31
Freeze Panes Solution 6 28
macro for closing opened workbook 6 21
Help Updated Qtr 2 11
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,…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
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.

867 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

16 Experts available now in Live!

Get 1:1 Help Now