How To Remove or turn off Hyperlinks In Excel?
If you want to remove hundreds of hyperlinks which exist in a worksheet or the whole workbook, or turn off the hyperlinks directly when creating them. How to quickly deal with the unwanted hyperlinks in Excel?
- Remove all hyperlinks in a range with Remove Hyperlinks command (Excel 2010 and later versions)
- Remove all hyperlinks in a worksheet with VBA code (All Excel versions)
- Remove all hyperlinks without losing formatting with VBA code (All Excel versions)
- Remove all hyperlinks without losing formatting in ranges, sheets or workbook with Kutools for Excel (All Excel versions)
- Turn off or disable automatic hyperlinks in Excel
If the hyperlinks are in the same worksheet, you can use the Remove Hyperlinks function to remove them.
1. Select the range containing hyperlinks you want to remove.
2. Then click Home > Clear > Remove Hyperlinks, see screenshot:
Tips: You can also right-click the selected range, and choose Remove Hyperlinks from the menu, see screenshot:
3. And all the hyperlinks in the selected range are deleted at once.
If you are a skilled and professional user, you can create macros to remove the hyperlinks from an active worksheet.
1. Activate the worksheet that you want to remove the hyperlinks from.
2. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
3. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Remove all hyperlinks from active worksheet:
Sub RemoveHyperlinks() ActiveSheet.Hyperlinks.Delete End Sub
4. Then press F5 key to run this code, and all the hyperlinks are removed from the active worksheet immediately.
All of the above methods will clear the cell formatting when removing the hyperlinks, if you want to keep the formatting while deleting the hyperlinks, here is a code may do you a favor. Please do as follows:
1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Remove all hyperlinks without losing cell formatting:
Sub RemoveHlinkskeepformatting() Dim Rng As Range Dim WorkRng As Range Dim TempRng As Range Dim UsedRng As Range Dim xLink As Hyperlink On Error Resume Next xTitleId = "KutoolsforExcel" Set WorkRng = Application.Selection Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8) Set UsedRng = Application.ActiveSheet.UsedRange For Each xLink In WorkRng.Hyperlinks Set TempRng = Cells(1, UsedRng.Column + UsedRng.Columns.Count) Set Rng = xLink.Range Rng.Copy TempRng Rng.ClearHyperlinks Set TempRng = TempRng.Resize(Rng.Rows.Count, Rng.Columns.Count) TempRng.Copy Rng.PasteSpecial xlPasteFormats TempRng.Clear Next End Sub
3. Then press F5 key to run this code, and then, in the prompt box, select the range contains the hyperlinks you want to remove but leaving the formatting, see screenshot:
4. And then, click OK, the hyperlinks have been removed, but the formatting of the hyperlinks (including the underlines) is kept. See screenshots:
Assuming you are about to remove hyperlinks without losing formatting in multiple worksheets or whole workbook, then an available tool Kutools for Excel will help to remove multiple hyperlinks in one click.
After installing Kutools for Excel, apply the Delete Hyperlinks feature according to following steps:
Click Kutools > Link > Delete Hyperlinks Without Losing Formatting, then select the scope that you want to delete the hyperlinks from as you need. See screenshot:
And then, all the hyperlinks will be removed at once but the text formatting is kept as you need, see screenshots:
The Excel will create the hyperlinks automatically when you input the web addresses or email addresses, if you need to disable this annoying operation. Please do as this:
1. In Excel 2010 and later version, click File > Options; in Excel 2007, click Office button > Excel Options to open the Excel Options dialog.
2. In the Excel Options dialog box, click Proofing from the left pane, and click AutoCorrect Options in the right section. See screenshot:
3. And then in the popped out AutoCorrect dialog, click AutoFormat As You Type tab, and uncheck Internet and network paths with hyperlinks option under Replace as you type section, see screenshot:
4. Then, click OK > OK to close the dialogs. Now, when entering a web address into a cell, after pressing Enter key, the internet address will not become clickable hyperlink.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 3 years agoHi, thanks for the visual basic trick; I am not familiar with any programming, but this instruction was very clear and easy to follow. I still had to individually clear the icon in the cells, but at least hyperlinks were removed in one go. Thanks again!
- To post as a guest, your comment is unpublished.· 3 years ago" This method is not available for Excel 2007." Thank you for wasting my time. What is the f***ing method for Excel 2007?
- To post as a guest, your comment is unpublished.· 3 years agoVery much thankful to you, you made my task easy
- To post as a guest, your comment is unpublished.· 4 years agoExcel 2007 I struggled with all the above then found if you highlight the areas to remove the hyperlinks > look to where "Auto Sum" is and underneath you will find "Clear" select "clear formats" and bingo all done
- To post as a guest, your comment is unpublished.· 4 years agoi follow all steps.
I and i did it.
If you want to remove hyperlink in excel 2007.
press alt + f8
select default macros
- To post as a guest, your comment is unpublished.· 5 years agoThank you so much! YOu saved me so much annoyance!
- To post as a guest, your comment is unpublished.· 5 years agoThank you soo much, I hade to prepare a data for 270emp. and though its a big formula but got help and learnt new thing as well.
- To post as a guest, your comment is unpublished.· 5 years agoLove your easy to follow instructions! Worked like a charm!! Thank you very much. Saved me a lot of time removing hyperlinks individually. Normally, I'm quite computer illiterate but I was able to follow the macros instruction and I got excited that I have to make a comment. Thank you. This helped a ton!
- To post as a guest, your comment is unpublished.· 6 years agojust copy the entire row of data with hyperlinks on a notepad
then select all and copy again from notepad
select the first cell of the row and paste it..
Note -- dont do it on Ms word...it carries the hyperlinks as well...
- To post as a guest, your comment is unpublished.· 5 years agoPasting to notepad was a brilliantly simple suggestion, and I guess would work on all editions of Excel, which is not the case with all of the above methods as I and others have found out.
- To post as a guest, your comment is unpublished.· 6 years agoI downloaded - thinking that it would help on removing old hyperlinks to excels that no longer are valid. followed instructions above - came back "no hyperlinks found". When saved, closed and reopened, it had the same warnings that "Cant Connect to https://xxxxx".
how else can I resolve. I have to go into 140+ worksheets to try and manually remove it this tool does not work.
- To post as a guest, your comment is unpublished.· 6 years agoMacro method is very useful and the second one which I always use is copy and paste the data in another sheet it loses the hyperlinks.
- To post as a guest, your comment is unpublished.· 6 years agoMacro method helped me a lot. Very useful. Thanks!
- To post as a guest, your comment is unpublished.· 6 years agoIf you make a selection and then Ctrl+C and Ctrl+V to copy and paste in place and it will lose the hyperlinks. Then you can just use the editing menu off the home menu to clear formatting (Alt H E F). This works in Excel 2007 at least. Otherwise you can copy something into notepad and copy it back into excel from notepad to remove any formatting.
- To post as a guest, your comment is unpublished.· 3 years agoGo to Home and then on the right you have Auto sum, Fill and Clear, Click Clear and then clear Hyperlink (to keep formating)
- To post as a guest, your comment is unpublished.· 5 years agoWOW the copy & paste in notepad works. Thank You
- To post as a guest, your comment is unpublished.· 5 years agoBrilliant ... GENIUS!!!!
- To post as a guest, your comment is unpublished.· 6 years agoGood sir, thank you so much for your comment. Saved me tons of time and repetitive activity. And it's the simplest option for '07 users.