samirst
asked on
Macro for removing hyperlinks from spreadsheet
Hi Experts,
I have an Excel spreadsheet that has hyperlinks randomly scattered in different cells within the spreadsheet, is there a way of having a macro that can remove all hyperlinks in the spreadsheet. Thanks
Sam
I have an Excel spreadsheet that has hyperlinks randomly scattered in different cells within the spreadsheet, is there a way of having a macro that can remove all hyperlinks in the spreadsheet. Thanks
Sam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sub RemoveHyperlinks()
ActiveSheet.Hyperlinks.Del ete
End Sub
will also do it.
Regards,
Rory
ActiveSheet.Hyperlinks.Del
End Sub
will also do it.
Regards,
Rory
A little add-on:
If you want to delete the text as well it is done with:
Sub RemoveHyperlinks()
For Each hl In ActiveSheet.Hyperlinks
Range(hl.Range.Address).Cl earContent s
Next hl
End Sub
Claus Henriksen
If you want to delete the text as well it is done with:
Sub RemoveHyperlinks()
For Each hl In ActiveSheet.Hyperlinks
Range(hl.Range.Address).Cl
Next hl
End Sub
Claus Henriksen
ASKER
Sam