Dim string_to_change As String, string_replacement As String
string_to_change = "\My%20Products\"
string_replacement = "\My Products\"
Dim hl As Hyperlink
For Each hl In ActiveSheet.Hyperlinks
hl.Address = Replace(hl.Address, string_to_change, string_replacement)
hl.TextToDisplay = Replace(hl.TextToDisplay, string_to_change, string_replacement)
Next
|