Hi Peo and Soz, (courtesy email copy to Soz)
I wouldn't think there would be much use or safety in removing
all hyperlinks in all worksheets let along removing ALL of the cell
content of any cell containing a hyperlink in all worksheets.
The OP wanted a simpler method than using Ctrl+K to remove
the hyperlink and only the hyperlink, as I read it. The poster was
therefore referring to inserted hyperlink and automatically generated
links rather than HYPERLINK Worksheet Functions.
The following will remove only the hyperlinks from a selection of cells.
By using Ctrl+A the selection can be the entire worksheet so only
need one macro..
Sub DelHyperLinks()
'--Removes all hyperlinks from a selection
Selection.Hyperlinks.Delete
End Sub
To remove only the hyperlinks from ALL worksheets, which I wouldn't
think there would be much use for. Know your data and what you are doing..
Sub RemoveAllHyperLinksInWB()
'-- Removes all hyperlinks from all worksheets in active workbook
Dim mySht As Worksheet
For Each mySht In Worksheets
mySht.Hyperlinks.Delete
Next mySht
End Sub
For information on installing / using a macro see
http://www.mvps.org/dmcritchie/excel/getstarted.htm
For more information on hyperlinks see my
Build Table of Contents, similar listings, working with Hyperlinks
http://www.mvps.org/dmcritchie/excel/buildtoc.htm
Peo Sjoblom said:
Are these from insert>hyperlinks? If so you can copy an empty cell, [clipped]
Soz said:
Is there any way to remove hyperlinks in cells other than right clicking
on > each individual cell and selecting remove hyperlink?