Sub BasicExample()
Dim r As Range, Str
For Each r In UsedRange
If Left(r.Formula, 10) = "=HYPERLINK" Then
Str = Replace(r.Formula, "=HYPERLINK(", "")
Str = Left(Str, Len(Str) - 1)
Str = Replace(Str, Chr(34), "")
Str = Split(Str, ",")
r.Formula = ""
r.Hyperlinks.Add r, Str(0), , , Str(1)
End If
Next
End Sub
|