ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy text hyperlinks and paste them as source addresses? (https://www.excelbanter.com/excel-discussion-misc-queries/116657-copy-text-hyperlinks-paste-them-source-addresses.html)

Minuette

Copy text hyperlinks and paste them as source addresses?
 
I have 1000s of text hyperlinks in a spreadhseet (are these called target
links?) and I want to display them as proper addresses (called source?) You
can see the URL address in the yellow text box that appears when I hover over
the link. Have been unable to find anything in paste special, or in the View
tab in Options to help. Know that there is a Visual Basic way but can't use
it! Help!

Gary''s Student

Copy text hyperlinks and paste them as source addresses?
 
This one line UDF:

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

will return the address part of the hyperlink. So if A1 contains the
hyperlink, then
=hyp2r(A1) will return the address (URL)
--
Gary's Student


"Minuette" wrote:

I have 1000s of text hyperlinks in a spreadhseet (are these called target
links?) and I want to display them as proper addresses (called source?) You
can see the URL address in the yellow text box that appears when I hover over
the link. Have been unable to find anything in paste special, or in the View
tab in Options to help. Know that there is a Visual Basic way but can't use
it! Help!



All times are GMT +1. The time now is 09:49 AM.

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