Hyperlink text

cloydsz

New Member
Joined
Feb 18, 2017
Messages
6
Hello there,

I have TEXT in A1 and LINK in B1, is it possible to get the link from B1 and hyperlink it to A1?

Thanks!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Yes

Right click B1,select HYPERLINK / PLACE IN THIS DOCUMENT / SELECT THE SHEET.

Make certain you have entered A1 in 'Type The Cell Reference'
 
Upvote 0
If the URL is typed as www.somewhere.com it should auto display as a hyperlink.

Provide an example of what the text looks like in your cells. If possible, posting a sample project to DropBox.com or some other
cloud download location would be better. That way I can look at what you are dealing with.

Thanks
 
Upvote 0
Paste this into a routine module and activate with a command button on the worksheet.

It will ask you to supply a range to be converted to hyperlinks. Ex: B2:B99

Code:
Option Explicit


Sub ConvertToHyperlinks()
'Updateby20140318
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Application.ActiveSheet.Hyperlinks.Add Rng, Rng.Value
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,824
Messages
6,127,103
Members
449,358
Latest member
Snowinx

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