Extracting data out of hyperlinks (minor problem)

  • Thread starter Thread starter uesc
  • Start date Start date
U

uesc

i have a small problem.
i have an excel spreadsheet, an within that spreadsheet is a column o
names, first and last in the same column. Each person's name has thei
e-mail address attached to it in the form of a hyperlink. i would lik
to extract the e-mail addresses out and into a new spreadsheet withou
editing each hyperlink, copying the e-mail address, and pasting it int
a new spreadsheet.

i don't know much about excel, but there has to be a way to do this
right?

Thanks in advance helping a n00b
 
It would definitely be easier if you provided a couple of examples how the
hyper links
can look?
 
If they are from the insert>hyperlink you can use this function from David
McRitchie

Function HyperlinkAddress(cell)
On Error Resume Next
HyperlinkAddress = cell.Hyperlinks(1).Address
if hyperlinkaddress = 0 then hyperlinkaddress = ""
End Function


press Alt + F11, click insert>module and paste the above, then press Alt + Q
to close VBE
then use it like


=SUBSTITUTE(hyperlinkaddress(A1),"mailto:","")
 
Peo:

You are a genius!
that worked like a charm on all of the addresses!!

Thank you so much!
 

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