HYPERLINK(url,name)

B

bonejn

Is there a function that reverses the process? I'm just not finding it in excel help.
I'm trying to extract the url and name from a pasted hyperlink and put those values adjacent
columns.

tia,

-Brad
 
D

Debra Dalgleish

You can use a User Defined Function to extract the URL. For example:

Function HLink(rng As Range)
'extract URL from hyperlink
'posted by David McRitchie
On Error Resume Next
HLink = rng.Hyperlinks(1).Address
If HLink = 0 Then HLink = ""
End Function

If you store this in Personal.xls, and want to return information about
a hyperlink in cell B2, the formula would be:

=PERSONAL.xls!HLink(B2)

To return the name, refer to the cell which contains the hyperlink:
=B2
 
B

bonejn

Thanks Debra and Dave!
Both routines work great =)
You've just saved me soooo much time!!
-Brad
 

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

Top