Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub ClearHyperlinks()
- Dim hl As Hyperlink
- For Each hl In Worksheets("Sheet1").Hyperlinks
- hl.Address = Replace(hl.Address, "javascript:go(", "")
- hl.Address = Replace(hl.Address, ")", "")
- Next hl
- End Sub
- hl.Address = Replace(hl.Address, "javascript:go(" & Chr(34), "")
- hl.Address = Replace(hl.Address, Chr(34) & ")", "")
- hl.Address = Replace(hl.Address, "javascript:go(%22" , "")
- hl.Address = Replace(hl.Address, "%22)", "")
- hl.Address = hl.TextToDisplay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement