dparteka
Member
Hello there... can anyone tell me what I need to do to get this to work in Excel 2010, it works fine using 93-2003... thanks
Code:
Sub FixHyperlinks()
Dim wks As Worksheet
Dim hl As Hyperlink
Dim sOld As String
Dim sNew As String
Set wks = ActiveSheet
sOld = "2014"
sNew = "2015"
For Each hl In wks.Hyperlinks
hl.Address = Replace(hl.Address, sOld, sNew)
Next hl
End Sub