Automatic hyperlink creation not working?

yeevy

New Member
Joined
Mar 24, 2023
Messages
5
Office Version
  1. 2021
Platform
  1. MacOS
I’ve tried automating the creation of hyperlinks (eg. =HYPERLINK(“#’Sheet1’!A2”;1) ) to other worksheets by using a TEXTJOIN function. Then, if I copy and paste just the values of the results, I get the exact hyperlink formulas I need, but they don’t become clickable and instead just display the formula until I double click on them (to enter edit cell mode) and then click away from it, as if that action updated it on some way. I need to generate several hundred hyperlinks, so I would prefer not having to click on each one of them for them to work, so how could I automatically make them all clickable?
Also, a similar thing happens when typing or pasting a link directly into a cell, where it wouldn’t become clickable until I add a space at the end, how to change that?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I’ve tried automating the creation of hyperlinks (eg. =HYPERLINK(“#’Sheet1’!A2”;1) ) to other worksheets by using a TEXTJOIN function. Then, if I copy and paste just the values of the results, I get the exact hyperlink formulas I need, but they don’t become clickable and instead just display the formula until I double click on them (to enter edit cell mode) and then click away from it, as if that action updated it on some way. I need to generate several hundred hyperlinks, so I would prefer not having to click on each one of them for them to work, so how could I automatically make them all clickable?
Also, a similar thing happens when typing or pasting a link directly into a cell, where it wouldn’t become clickable until I add a space at the end, how to change that?
Ok, after searching around the Internet a bit more, I found a solution, which is simply to replace any character common to all Hyperlink formulas with itself using the find and replace function.
Of course, if you have other solutions, you can share them here.
 
Upvote 0
Solution
When I need to do the same thing for lots of cells, and find myself in the same situation, I simply select the range, go to VBE and open the Immediate Window, and write and execute the following one liner to create links quickly:

VBA Code:
for each cll in selection.cells: cll.hyperlinks.add cll, cll.value: next cll
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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