Build Hyperlink from Cells in Another Workbook?

RWeaverAMT

New Member
Joined
Aug 7, 2023
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
I have two workbooks:

Workbook1

Workbook2

In workbook 2, I have text in cell A1. The text could be a website url, or the filepath of a file in windows, or whatever.

In workbook1, I want to build a Hyperlink formula which gets its "link_location" from cell A1 in Workbook2.

I build the following formula in, say, cell C3 of Workbook1:

=HYPERLINK('C:\Users\JohnDoe\Desktop\[Workbook2.xlsx]Sheet1'!$A$1,"Test")

The hyperlink works correctly, and opens the website/file/whatever listed in cell A1 of Workbook2... but only if Workbook2 is open. As soon as I close Workbook2, clicking the link in Workbook1 does nothing. It's still there, and does not give any error (even after F2->Enter). It just... does nothing when clicked.

Now, if I go to Workbook1, and in cell, say, E5, I enter the following formula:

='C:\Users\JohnDoe\Desktop\[Workbook2.xlsx]Sheet1'!$A$1

This populates cell E5 in Workbook1 with the text from cell A1 of Workbook2. If I then replace the formula in cell C3 of Workbook1 with the following formula:

=HYPERLINK(E5,"Test")

Then the link works, and continues to work even when Workbook2 is closed.

What gives? Is there a way to make this work without the "middle man" formula?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Build Hyperlink from Cells in Another Workbook?
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,082
Members
453,021
Latest member
Justyna P

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