PeterMoran
MIS
Hi,
I have this Excel 2K macro:
Sub RemoveHLinks()
'Remove all Hyperlinks in Selection
Application.ScreenUpdating = False
Do Until Selection.Hyperlinks.Count = 0
Selection.Hyperlinks(1).Delete
Loop
Application.ScreenUpdating = True
End Sub
It removes the hyperlinks fine, but also removes any formatting on the relevant cells, such as Bold and Background colour, which normally I do not want to lose.
Is it possible to simply modify the macro so it only deletes the hyperlinks, and leaves the other properties of the cells unchanged?
Thanks in advance.
Peter Moran
I have this Excel 2K macro:
Sub RemoveHLinks()
'Remove all Hyperlinks in Selection
Application.ScreenUpdating = False
Do Until Selection.Hyperlinks.Count = 0
Selection.Hyperlinks(1).Delete
Loop
Application.ScreenUpdating = True
End Sub
It removes the hyperlinks fine, but also removes any formatting on the relevant cells, such as Bold and Background colour, which normally I do not want to lose.
Is it possible to simply modify the macro so it only deletes the hyperlinks, and leaves the other properties of the cells unchanged?
Thanks in advance.
Peter Moran