Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Sub ClearHyperlinks()
  2. Dim hl As Hyperlink
  3.  
  4. For Each hl In Worksheets("Sheet1").Hyperlinks
  5. hl.Address = Replace(hl.Address, "javascript:go(", "")
  6. hl.Address = Replace(hl.Address, ")", "")
  7. Next hl
  8.  
  9. End Sub
  10.  
  11. hl.Address = Replace(hl.Address, "javascript:go(" & Chr(34), "")
  12. hl.Address = Replace(hl.Address, Chr(34) & ")", "")
  13.  
  14. hl.Address = Replace(hl.Address, "javascript:go(%22" , "")
  15. hl.Address = Replace(hl.Address, "%22)", "")
  16.  
  17. hl.Address = hl.TextToDisplay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement