Hyperlink Query

Mike Blackman

Well-known Member
Joined
Jun 8, 2007
Messages
2,494
Hi All,

Sorry, manically busy and need your help...

I have hyperlinks in cells, the cells are showing Argentina_BICGantt.mpp for example, is there any way to retrieve the ACTUAL entire path or re-format to the entire path without doing it manually?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Sub hyperlinks()
Dim ii As Integer
With Sheet
For ii = 1 To .Hyperlinks.Count
.Hyperlinks(ii).Range.Value = .Hyperlinks(ii).Address
Next ii
End With

That will put the actual address in the cells that contain hyperlinks.
 
Upvote 0
Hi Jaybee,

Thanks for that, I've just found this function which has done the job for me.

Code:
Function GetAddress(HyperlinkCell As Range)

    GetAddress = Replace _

    (HyperlinkCell.Hyperlinks(1).Address, "mailto:", "")

End Function
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top