ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to extract the url in a hyperlink using a formula (https://www.excelbanter.com/excel-worksheet-functions/108378-how-extract-url-hyperlink-using-formula.html)

pako_1972

How to extract the url in a hyperlink using a formula
 
I am trying to figure out how to extract the actual url from a field that
shows the friendly name as the link.

Bill Pfister

How to extract the url in a hyperlink using a formula
 
Here is a solution if you don't mind using user-defined functions:


Public Function ShowHyperlink(rngHyperlink As Range) As String
If (rngHyperlink.Hyperlinks.Count 0) Then
ShowHyperlink = rngHyperlink.Hyperlinks(1).Address
Else
ShowHyperlink = "no hyperlink"
End If
End Function

Regards,
Bill

"pako_1972" wrote:

I am trying to figure out how to extract the actual url from a field that
shows the friendly name as the link.



All times are GMT +1. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com