hyperlink problem


R

Rich

Hi,

In column A I have a pasted link, displayed by friendly name (e.g "Click
Here"), and when I hover over I see the URL, and clicking the link opens the
URL in a browser window.

I would like column B to display the URL as text,

eg Click Here http://www.example.com

Is there a formula or function that will do this ?
 
Ad

Advertisements

M

Mike H

Hi,

This udf will extract the underlying value. Place it in a General module and
call with

=LinkText(a1)


Function LinkText(rng As Range) As String
On Error Resume Next
LinkText = rng.Hyperlinks(1).Address
End Function
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
Ad

Advertisements

R

Rich

This udf will extract the underlying value. Place it in a General module
and
call with

=LinkText(a1)


Function LinkText(rng As Range) As String
On Error Resume Next
LinkText = rng.Hyperlinks(1).Address
End Function
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.

Mike,

Works a treat, thankyou.
 

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