Parse hyperlink from visible text

  • Thread starter Thread starter Duane
  • Start date Start date
D

Duane

I was given a large Excel file which contains a column with visible text
("Map") in it, which contains an underlying hyperlink to a URL.

Can I parse the hyperlink into another column? I can't find a way to do it,
but it seems this should be a fairly simple function.

Thanks
 
If your hyperlinks are in column A, then first enter this UDF:

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

then in B1:

=hyp(A1) and copy down
 
Thanks. I will give it a try.




Gary''s Student said:
If your hyperlinks are in column A, then first enter this UDF:

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

then in B1:

=hyp(A1) and copy down
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top