×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

extract XL cell's hyperlink

extract XL cell's hyperlink

extract XL cell's hyperlink

(OP)
Looking for a way to extract the URL from an XL cell (cell is typically displaying a link as an underlined name).

Thanks.

BigInchworm-born in the trenches.
http://virtualpipeline.spaces.msn.com

RE: extract XL cell's hyperlink

Excel's spreadsheet functions don't appear to support finding hyperlinks, but Visual Basic does recognize a hyperlink.

Something like this:
For Each h In Worksheets(1).Hyperlinks
    test = h.Address
Next

TTFN



RE: extract XL cell's hyperlink

It works on a range argument, too:

CODE

Function GetHyperlink(R As Range) As Variant
    GetHyperlink = R.Hyperlinks(1).Address
End Function
can be called as =GetHyperlink(A1) (for example), which gives you the hyperlink address in cell A1.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources