ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Hyperlink text (https://www.excelbanter.com/excel-discussion-misc-queries/85362-hyperlink-text.html)

Frazer

Hyperlink text
 
I have a hyperlink, in a cell, say cell A1.

This text, for example it may say 'blah', is then hyperlinked to a webpage,
say www.hyperlink.com.....ie the text is not related to the name of the
hyperlink.

Is there a way i can then get the actual hyperlink, www.hyperlink.com, to
appear in the next column?

Gary''s Student

Hyperlink text
 
Yes:

enter this tiny UDF:

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

if A1 has a hyperlink in it then
=hyp2(A1) will display the URL (address part)
--
Gary's Student


"Frazer" wrote:

I have a hyperlink, in a cell, say cell A1.

This text, for example it may say 'blah', is then hyperlinked to a webpage,
say www.hyperlink.com.....ie the text is not related to the name of the
hyperlink.

Is there a way i can then get the actual hyperlink, www.hyperlink.com, to
appear in the next column?



All times are GMT +1. The time now is 03:31 PM.

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