Display URL's inside a text in a cell as links?

pluginguin

New Member
Joined
Aug 10, 2016
Messages
21
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I have some cells with text. A part of each of these texts is an URL.
But these URLs are not formatted as a link, you only see the absolute definition of the url.
I know that if a cell contains an URL only, it is formatted as a link, but how do I do that when there is more text in the same cell?

Regards,

Pluggie
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
The whole cell must be marked as a hyperlink if you want it to work as one.
So the text that will be displayed is will have to be the hyperlink's TextToDisplay.
You can however separately format each part of the text differently so the link will stand-out.
There are two ways to do it:
- manually
- automate with VBA if you have a way to discover the URL inside
 
Upvote 0
Hello bobsan,

I see how that would work.
Since all the URLs in the file have the same beginning I would need a piece of code that finds a string that starts with that beginning and ends before the first space.
I will try and find it.

Thanks for the tip!
 
Upvote 0
On the other hand... if I do it that way, users can not easily modify the text later (if needed) because of all the markup.

So I'm contemplating other options.
Sorry that it won't work in the single cell though...

Regards, Pluggie
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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