View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.misc
Norm (I know nothing) Norm (I know nothing) is offline
external usenet poster
 
Posts: 4
Default formula or code to extract hyperlink from displayed text

Simple and elegant. What a time saver. I used this to extract from over 300
links I needed to pull. Thank you, thank you!

"Gord Dibben" wrote:

Code from Ron de Bruin

Hyperlink in column A and address returned to Column B

Sub Test()
Dim hlnk As Hyperlink
For Each hlnk In Columns("A").Hyperlinks
hlnk.Parent.Offset(0, 1).Value = hlnk.Address
Next
End Sub


Gord Dibben MS Excel MVP


On Tue, 1 May 2007 12:28:00 -0700, CT3or4
wrote:

Huge Excel files (& files) with 'text dislayed' (long descriptions) as
hyperlink that need to be converted to URL (http://etc) hyperlink in order to
save/use in various apps & dbs.
How can I/we convert or extract the URL in in the cell without using the
"Edit Hyperlink" tool one-cell-at-a-time to cut, paste?