Excel /VBA - Delete hyperlinks (All versions)

Ask a question

A simplemethod to remove all hyperlinks in a selected range:
1 - Open the Excel workbook
2 - Press ALT + F11 (the Visual Basic Editor window opens)
3 - Insert / Module
4 - In the module copy and paste this code:
Sub EraseLinks()
With Selection
End With
End Sub

5 - Close the Visual Basic window to return to the sheet,
6 - Select the range containing all the links,
7 - Press ALT + F8 > select Sub EraseLinks and click on Run.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team