HyperLink Function

G

Guest

I have a large list of text entries, the text in each Cell having a
Hyperlink, mainly to a www address but a few to other cells.

Obviously the hyperlink address is not visible in the Cell but I would like
to know if there is a function (or any other way) of listing the hyperlink,
say, in the adjoining column.
 
P

PC

Dave McRitchie has posted this user defined function.

Copy & paste it into a new Module in your workbook. To use type the
function

=HYPERLINKADDRESS(A1)

Change cell reference as needed.



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

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