Automating Links

dwpfreak

New Member
Joined
Feb 22, 2008
Messages
32
Dear all, I have arranged a sheet where a user just has to enter their server number and their folder name (which is their pay number).

Problem is i add the string of text together which exactly replicates the link string but it doesn't show the value from that sheet.

for example ='c:\documents and settings\my documents\linktest\123456\[link.xls]sheet1!a1

This is how the actual link looks, but when i combine columns of text into an exact replica of the above, No Link????

where am I going wrong and how do i get my combined text string to act as the link?

I hope someone out there knows what i am talking about and how to help?

thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Have you tried it with a single-quote before the ! (or is it after). I don't use that syntax very often, but I recall that it needs matching single-quotes.
 
Upvote 0
yes I tried that, thanks for that suggestion, any other ideas or should i try a different approach?
 
Upvote 0
well the idea is this,

in column A there will be the beginning of a normal link.

In column B the person doing the linking enters their server ID, in column C they enter the folder Name, then a cell using =(a1&b1&c1) formats the string as the link. But all it is shwoing is the string of formula.

It is identical to the actual link I put in, but doesn't work.

Hence why baffled

if you know what I am missing please help
 
Upvote 0
The reason its not calculating is that the cell holds text, not a formula. Excel was instructed to show those characters, not the interpretation of them as a formula.

The INDIRECT function might help.

In my testing, if B1 held Macintosh HD:Users:merickson:Desktop:[BookA.xls]Sheet1
and B2 held [BookA.xls]Sheet1

And A1, the formula =INDIRECT(CHAR(39)&B1&CHAR(39)&"!$A$1")
and A2 , =INDIRECT(CHAR(39)&B2&CHAR(39)&"!$A$1")

Both A1 and A2 returned the value from BookA.xls, but only when it was open.

I don't think that INDIRECT can return a value from a closed workbook.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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