Saved from a previous post:
Are the hyperlinks inserted via Insert|Hyperlink?
If yes:
You can use a User defined function to retrieve the link.
Option Explicit
Function GetURL(Rng As Range) As String
Application.Volatile
Set Rng = Rng(1)
If Rng.Hyperlinks.Count = 0 Then
GetURL = ""
Else
GetURL = Rng.Hyperlinks(1).Address
End If
End Function
So if you had a hyperlink in A1, you could put =getURL(a1) in that adjacent
cell.
Be aware that if you change the hyperlink, then this formula cell won't change
until your workbook calculates.
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Marc LaMassa wrote:
I have a spreadsheet with 2500 email address that are hyperlinks with the
persons name being shown. Aside from clicking on each one, is there any way
to get the address behind the link?
--
Dave Peterson