Ian
Not sure if I understand, but the code below will iterate a pre-selected
range and if there is a hyperlink will place it's address 2 columns to the
right (change as necessary)
Sub MoveHyper()
Dim myCell As Range
Dim hyLink As Hyperlink
For Each myCell In Selection
If myCell.Hyperlinks.Count > 0 Then
Set hyLink = myCell.Hyperlinks(1)
myCell.Offset(0, 2).Hyperlinks.Add myCell.Offset(0, 2),
hyLink.Address
Set hyLink = Nothing
End If
Next myCell
End Sub
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
web:
www.nickhodge.co.uk
blog (non tech):
www.nickhodge.co.uk/blog
"IAN" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a spreadsheet with thousands of records. One column contains
> hyperlinks either created manually using the Insert->Hyperlink action
> or via a =HYPERLINK() dynamic formula.
>
> I need to return the URL for the cyperlink column into another column
> so that I can use it for some other purpose. The new cells would
> simply contain text like http://website/folder/file.htm.
>
> I couldn't find a function that returned the URL, so I'm wondering if
> there is another way to get the info? A macro possibly?
>
> Thanks for your help
> IAN
>