How to easily remove hyperlinks from multiple cells?

14

2

I have data exported from a tool as XLS. In this, one of the column has text which is a hyperlink to information in the tool. I can remove the hyperlink for each cell. But I want to remove the hyperlink for all the cells in the column in a easier way. Is there an option in Excel itself?

TheMaskOfZero

Posted 2010-09-24T10:57:00.830

Reputation: 243

Answers

20

An option would be to let a VBA Macro do the donkey work.

Press Alt-F11, double-click This Workbook, then copy this code into the resulting window (essentially only one line of code!):

Sub RemoveHyper()
    Selection.Hyperlinks.Delete
End Sub

Press Alt-F11 to go back to your spreadsheet, select all the cells with hyperlinks, then do Alt, T, M, M (or Alt-F8) and select the RemoveHyper Macro, then select Run.

When you're done, if you want to remove the Macro, either save the file as .xlsx, or press Alt-F11 and remove the code.

misterjaytee

Posted 2010-09-24T10:57:00.830

Reputation: 1 763

1If your on OSX just go to the top menu bar -> tools -> macros -> visual basic editor, then type the code into this workbook.. then go back to the macros menu and run it after selecting all cells with links. – Abram – 2016-03-31T14:05:01.693

+1 on osx, file format xlsx will throw out macros. you need to save in old xls format – μολὼν.λαβέ – 2017-09-11T01:00:27.493

This one also worked like a charm. More technical way of solving the problem. Thank you. – TheMaskOfZero – 2010-09-24T15:12:28.080

+1 Much more elegant than mine! – BloodPhilia – 2010-09-28T20:09:34.173

9

Follow these steps:

  1. In any empty cell, type in the number 1 (it can be deleted later).
  2. Right click the cell where you typed the number 1 and then click on Copy.
  3. Select the cells with hyperlinks that you want to delete.
  4. On the Home tab, in the Clipboard group, click the down arrow and then click on Paste Special.
  5. Under Operation, click on Multiply, and then click OK.
  6. On the Home tab, in the Styles group, click on Cell Styles. From the drop down menu, click on Normal.
  7. Now the hyperlinks are deleted. You can now delete the number 1 used to perform this task.

Mehper C. Palavuzlar

Posted 2010-09-24T10:57:00.830

Reputation: 51 093

It added 0's to all my empty cells. Not a problem in this case but noteworthy to avoid in future. – rom016 – 2016-03-06T11:20:55.957

@rom016: Since an empty cell has a value of 0, multiplication by 1 results in 0. This is no problem for the above case as the relevant cells are not empty. – Mehper C. Palavuzlar – 2016-03-10T14:03:09.477

@Mehper C. Palavuzlarbut other cells could be highlighted to save time picking each one out. – rom016 – 2016-03-10T14:12:20.490

1+1 This is how I learned a long time ago and works everytime within Excel. – Hondalex – 2010-09-24T15:38:49.487

6

Select all cells you want to clear from hyperlinks, then click the "Home" tab in the ribbon at the top of Excel. In the "Editing" group, click on the "Clear" pull-down arrow and select "Clear Formats".

Screen Shot

UPDATE:

Select all cells you want to clear from hyperlinks, right click and "Cut" or use Ctrl+X. Now open up a notepad window and paste it there. Now select all the lines with content from notepad and right click "Cut" or use Ctrl+X. Now select the top cell of the just cut column in Excel and right click "Paste" or use Ctrl+V.

BloodPhilia

Posted 2010-09-24T10:57:00.830

Reputation: 27 374

Thanks for the answer; But that doesn't clear the hyperlinks. Am I doing something wrong? – TheMaskOfZero – 2010-09-24T11:11:24.303

@TheMaskofZero That is odd, it seems to work just fine for me... Are you selecting the right cells? Some text that doesn't fit in the cell makes an overlap with neighbouring cells thus making it seem as if that were the cells they are in. – BloodPhilia – 2010-09-24T11:22:50.913

@BloodPhilia I am selecting exactly those cells which have the hyperlink. I am having all cells in the same column and they are continuous. I tried this by selecting a single cell. Even then the hyperlink is not cleared. – TheMaskOfZero – 2010-09-24T11:49:55.897

@TheMaskofZero That is odd... I'll add a workaround to my answer in a minute. – BloodPhilia – 2010-09-24T11:56:39.283

@BloodPhilia Thank you! The workaround worked. – TheMaskOfZero – 2010-09-24T12:08:40.813

@TheMaskofZero You're welcome! – BloodPhilia – 2010-09-24T12:11:47.100

Removing the formatting does not remove the hyperlink itself, only the visual style which shows that it is a link. – Torben Gundtofte-Bruun – 2012-03-14T14:36:05.053

5

I highlighted the range that had multiple hyperlinks embedded. I copied them to another section of the spreadsheet, then, used the Special Paste function, and pasted them as values into the new section. Worked like a charm!

BryanFaz

Posted 2010-09-24T10:57:00.830

Reputation: 51

2

It is irritating when you type an email ID in an excel cell and a hyperlink automatically comes in. To get rid of getting hyperlinks further in any cell , here's the solution:

  1. Click on the Office button at the top left corner of your excel sheet (an icon showing some boxes).
  2. Down there are 2 tabs - Excel options and Excel exit. Click on Excel option.
  3. Go to Proofing
  4. Click Auto correct option
  5. Select tab Auto Format as you type
  6. Uncheck Internet and network paths with hyperlinks apply as you work.
  7. Click OK button below

Trip

Posted 2010-09-24T10:57:00.830

Reputation: 21

This is about preventing cell contents to be converted to hyperlinks, please explain how it solves the current problem (converting hyperlinks back to plain text) – Máté Juhász – 2015-10-06T07:46:07.553

1

Use format painter. Just select a cell that isn't a hyper link (or make one with a right click "remove Hyperlink" then select the whole column and click on the format panter button again.

David

Posted 2010-09-24T10:57:00.830

Reputation: 11

2This one did not work. – TheMaskOfZero – 2011-09-26T06:46:47.330

1

  • Highlight all the hyperlinks you wish to remove
  • Under the Home tab, go to Styles and select Cell Styles
  • Click on Normal
  • If you wish to add hyperlinks again, do the same thing – only select Hyperlink instead of Normal

Russ B

Posted 2010-09-24T10:57:00.830

Reputation: 11

Doing this just changes the look of text. The cells still have the hyperlink. Clicking on cell again takes me to the tool. – TheMaskOfZero – 2012-03-19T09:41:37.027

1

Copy cells, paste special, "values" in another column (or row), then copy and paste back over the hyperlinked cells.

Elle

Posted 2010-09-24T10:57:00.830

Reputation: 11

1

Per Excel 2007 help file:

To turn off several hyperlinks at once, do the following:

  1. In a blank cell, type the number 1.
  2. Right-click the cell, and then click Copy on the shortcut menu.
  3. Hold down CTRL and select each hyperlink that you want to turn off. -- Tip -- To select a cell that has a hyperlink in it without going to the hyperlink destination, click the cell and hold the mouse button until the pointer becomes a cross, then release the mouse button.
  4. On the Home tab, in the Clipboard group, click the arrow below Paste, and then click Paste Special. (note: can right click, select paste special.)
  5. Under Operation, click Multiply, and then click OK. (Top area "Paste" = All. Bottom area "Operation" = Multiply)
  6. On the Home tab, in the Styles group, click Cell Styles.
  7. Under Good, Bad, and Neutral, select Normal. (Top left if "Cell Styles" is expanded. White box, black text, yellowish outline around box.)

It worked for me.

C Welch

Posted 2010-09-24T10:57:00.830

Reputation: 11

0

Tried multiple options stated on this page with no avail, but then I got lucky:

  1. Create a new worksheet
  2. Select cells with the hyperlinks
  3. Go to new worksheet
  4. Paste Special - select All using Source Theme

This pastes the content, removes the hyperlinks and retains the original formatting.

user189990

Posted 2010-09-24T10:57:00.830

Reputation: 1

0

To remove hyperlinks from multiple cells:

  1. Highlight all the cells you want to remove the hyperlink from
  2. Click on the "Home" Tab
  3. Click on "Clear" in the Editing Group
  4. Choose Clear Hyperlinks

datamonkey2012

Posted 2010-09-24T10:57:00.830

Reputation: 1

0

Highlight all the cells together, right click and add a hyper link, entering any letters, such as 'xxxx'. Press OK without changing the Highlighted area, then click on remove hyperlink.

ART

Posted 2010-09-24T10:57:00.830

Reputation: 1

0

Select the area, then Ctrl-C the area, then Ctrl-V the same area. Voila, no more hyperlink. Then change the blue to black by selecting color black while the are is still selected.

pusit

Posted 2010-09-24T10:57:00.830

Reputation: 1

-1

just put a link in other column and then copy this link to one another column by paste special values... then this new column can be copied to that multiple cells hyper link column... SIMPLE AND EASY

KIRAN

Posted 2010-09-24T10:57:00.830

Reputation: 1

1Is this really about removing the links? – Wrzlprmft – 2015-12-04T12:20:08.600

-1

Sub Macro2()
    Range("A1:Z300").Select
    Selection.Hyperlinks.Delete
End Sub

Running this macro eliminated all hyperlinks in the range of cells a1 thru z300

anonymous

Posted 2010-09-24T10:57:00.830

Reputation: 1

-1 Basically the same as accepted answer 2 years earlier – nixda – 2014-05-19T17:07:37.010

-2

Step 1:Click 1 in empty cell. Step 2:And Copy that cell. Step 3:Choose the hyperlink Column. Step 4:Click the Cell style in toolbar at home. Step 5:Click normal. step 6:delete 1.

Vel Murugan

Posted 2010-09-24T10:57:00.830

Reputation: 1

2

This is a broken copy of this answer. Please only answer a question if you have anything to add to the existing answers.

– Wrzlprmft – 2016-08-03T11:02:16.873