I have a cool macro that finds and replaces hyperlinks especially useful when hit by the C:\@GMT- bug
But I have been effected by the bug hitting all the sheets so instead of having to select each sheet and running this useful macro can someone post the changes to get it to work over all the sheets in the book ?
Sub FindReplaceHLinks(sFind As String, sReplace As String, _
Optional lStart As Long = 1, Optional lCount As Long = -1)
Dim rCell As Range
Dim hl As Hyperlink
For Each rCell In ActiveSheet.UsedRange.Cells
If rCell.Hyperlinks.Count > 0 Then
For Each hl In rCell.Hyperlinks
hl.Address = Replace(hl.Address, sFind, sReplace, lStart, lCount, vbTextCompare)
Next hl
End If
Next rCell
End Sub
Sub Doit()
FindReplaceHLinks "find what to replace here", "replace it with here"
End Sub
Bookmarks