Hello Steven,
Add a Standard Module to your VBA project then copy and paste the macro code below into it. The macro "CleanLinks" will remove the drive letter from the hyperlink automatically. It cleans whichever worksheet is active.
Sub CleanLinks()
Dim Addx As String
Dim Colon As Long
Dim Link As Hyperlink
For Each Link In ActiveSheet.Hyperlinks
Addx = Link.Address
Colon = InStr(1, Addx, ":")
If Colon > 1 Then
Addx = Mid(Addx, Colon + 2, Len(Addx) - Colon - 1)
Link.Address = Addx
End If
Next Link
End Sub
Sincerely,
Leith Ross
Bookmarks