How to stop Excel following hyperlinks when I click on them?

42

5

In Word I can use Ctrl+Click on the rare occasion that I want to follow a link rather than, you know, do the editing that Word is actually for.

Is there some way to get similar behaviour in Excel 2010, 2003, 2013?

I am sick of accidentally switching to IE or Outlook every time I try and select a cell that has a hyperlink attached.

Results of my prior research here on SuperUser and via popular search engines have not been very fruitful (e.g. http://blogs.office.com/b/microsoft-excel/archive/2011/04/12/hyperlinks-in-excel-hot-or-not.aspx) I am not interested in hearing how I can click and hold to select the cell, or run VBscript or Macros to strip all hyperlinks from a workbook. I want something that conforms with the UI I expect from a non browser application and applies to documents other people have created.

dunxd

Posted 2013-05-14T12:33:58.613

Reputation: 831

1Don't believe you can swap the standard Click and Ctrl+Click behaviours without VBA - BUT, if you Ctrl+Shift+Click a hyperlink it doesn't follow the link. However, I can't find a source online that confirms this, I've just discovered it via experimentation on my Excel 2010/Win7 install so for all I know it only works for me... try it! – Andi Mohr – 2015-01-02T16:47:23.037

3@Andi, actually it seems just Ctrl+Click won't follow the link for me - so the exact opposite behavior to Word. How useful! – Adam – 2016-09-12T12:19:21.387

FYI, this problem seems to be addressed in Office 365. In the new Excel you have to CTRL+Click the hyperlink in order to follow it, not vice versa. – posfan12 – 2017-11-12T10:10:28.807

1We are interested in what you have researched and tried already. Also, what version of Excel are you using? – CharlieRB – 2013-05-14T12:47:46.203

I've Googled and searched on SuperUser and come up with plenty of suggestions for how you can click and hold, create VBscripts or Macros to strip hyperlinks, but so far nothing about making Excel behave like Word. To be honest I thought that would be obvious from the question. I'm running Excel 2010, but is potentially annoying for anyone running Excel 2003, 2007, 2010, and possibly 2013. – dunxd – 2013-05-14T14:06:32.023

We may be super users, but not not super mind readers. Details help us help you. You've done a good job of explaining what you expect for answers. Only problem I see is there aren't any settings which make Excel act like Word. The behavior you've described has been part of Excel for many versions, so I don't expect it to change any time soon. From what I've researched, and given your criteria, you don't have many options, except maybe turning off automatic hyperlinks. – CharlieRB – 2013-05-14T16:35:38.810

3That there isn't a setting would be a valid answer. Turning off automatic hyperlinks would work for all documents I create, but not for any created by other people who haven't also turned this off. If you know for certain that there isn't UI to turn this off, then say so, Otherwise, please don't deter other people from answering by criticising the question. – dunxd – 2013-12-09T13:11:03.950

5I echo the original poster's request. I want to be able to create a spreadsheet with hyperlinks in it, but I don't want to FOLLOW said hyperlinks every time I merely click on the cell. I want an option (like in Word) where you can ctrl-click the link and THEN it follows it, and not just clicking on the cell (and not even on the link) and it following. – Kevin Anderson – 2013-12-17T18:04:48.350

Well, I guess this is just a hangover from the late 90s when Microsoft thought everything should be a hypertext browser and forgot that some applications might normally be used for something else than opening web pages. – dunxd – 2014-04-25T23:13:12.800

Answers

8

In Excel 2013, whitespace clicking will select the cell without following the URL, but you have to pay attention. If the icon changes to the hand icon on mouseover, it will follow the URL. If the icon changes to the big white cross, it will select the cell without following the URL. Changing row height or column width can help to increase the amount of whitespace.

Still, I wish that MS had thought to make URL clicks act the same in Excel 2013 as in Word 2013, because it is an annoyance.

"There is no such thing as a foolproof system. Someone will make a better fool, tomorrow." @LoneWolffe

LoneWolffe

Posted 2013-05-14T12:33:58.613

Reputation: 96

That's the closest to a useful answer - click on the cell not the text, if that is possible :-) – dunxd – 2015-03-12T16:29:01.930

There is a earlier answer, that while address' Excel 2010, provides practically the same solution as the accepted answer - http://superuser.com/questions/595383/how-to-stop-excel-following-hyperlinks-when-i-click-on-them/739917#739917

– user66001 – 2015-04-13T15:36:31.793

Doesn't work for me. The link is opened where-ever I click on the cell. – Paul Spiegel – 2019-10-24T13:32:56.650

17

I found that you can click the cell and hold the mouse button down for about one second. After that the cursor turns into the usual cross, as depicted below:

regular cursor after one second of mousedown

This works in Excel 2007, 2010, 2013 and 2016. If it works in 2003 or Office 365, please update my answer. =)

skia.heliou

Posted 2013-05-14T12:33:58.613

Reputation: 2 185

4+1 This should be the accepted answer, as it is the method actually explained by Excel directly within the tooltip! EDIT: Oh, whoops, nevermind - I see that the OP specifically indicated that they are not interested in this solution. But still +1. – Dan Henderson – 2017-05-01T20:52:12.357

7

What I have found (on Excel 2010 for Mac, at least) is that you can right click then left click the cell. That leaves you with the cell selected but does not follow the link. It becomes like a single motion and is not too annoying.

Devin

Posted 2013-05-14T12:33:58.613

Reputation: 71

This works on Excel 2013 for Windows as well – skia.heliou – 2015-12-22T21:48:45.657

4

How I do this: Set the hyperlink with the URL in the second portion:

=HYPERLINK("","http://example.com")

In the VBA Editor make a module:

Declare Function GetKeyState Lib "User32" (ByVal vKey As Integer) As Integer
Global Const CTRL_KEY = 17

Then the worksheet code:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    On Error GoTo Error1
    If Left(Target.Formula, 10) = "=HYPERLINK" Then
        If GetKeyState(CTRL_KEY) < 0 Then 'Check if CTRL is held in
            Application.EnableEvents = False
            ThisWorkbook.FollowHyperlink Mid(Target.Formula, 16, Len(Target.Formula) - 17)
            Application.EnableEvents = True
        End If
    End If

    Exit Sub

Error1:
    Application.EnableEvents = True

End Sub

To make it work, click on the cell, then CTRL+Click on the cell to visit the link. You could do other things like have text in the second portion of HYPERLINK then a SELECT CASE in the code, that opens a url based on the text. Other keystrokes are available as well:

Global Const SHIFT_KEY = 16
Global Const ALT_KEY = 18

http://msdn.microsoft.com/en-us/library/aa243025(v=vs.60).aspx

Christopher Thomas Nicodemus

Posted 2013-05-14T12:33:58.613

Reputation: 215

I think VBA is the only way to do it. I would propose that you don't have to use the HYPERLINK function, though. You could also use Target.Hyperlinks(1).Address (with error trapping) to determine if the cell has a hyperlink. – Engineer Toast – 2015-02-10T18:03:44.963

Done like a true Super User. – jony – 2015-09-07T14:40:03.857

4

Just go to Excel options->"proofing"-> "autocorrect options"-> "autoformat as you type" and uncheck the check box for "internet and network paths".

An alternative for IT security teams dealing with lot of IoCs is is to use autocorrection for "http" and auto-change as you type to "hxxp".In this way Excel will not create the hyperlink.

CK

ChrisK

Posted 2013-05-14T12:33:58.613

Reputation: 41

1That prevents me from creating the links, but doesn't have any impact on documents other people created without following the steps. – dunxd – 2015-07-13T20:18:10.840

Exactly what I was looking for! – Jonathan – 2016-12-13T13:13:51.113

1

Refer to Microsoft's website:

  • To remove a hyperlink and the text that represents it, right-click the cell that contains the hyperlink, and click Clear Contents on the shortcut menu.
  • To remove a hyperlink and the graphic that represents it, hold down CTRL and click the graphic, and then press DELETE.

If you are looking to disable a hyperlink for a single cell, here is the solution:

  • Right-click the hyperlink you want to deactivate, and then click Remove Hyperlink on the shortcut menu.

Fahad Saleem

Posted 2013-05-14T12:33:58.613

Reputation: 662

6The user said he doesn't want to remove the links, just the way that the program UI deals with them. This does not answer the question. – ilinamorato – 2014-03-19T15:05:52.533

1

I don't know if this is a workaround or an answer, but just make the width of your hyperlink column wider than the hyperlink text.

When you want to select the cell just click anywhere in the whitespace to the right of the link.

Alternately, by increasing the height of rows and clicking in the whitespace above (or below, depending on your alignment settings) the link you get the same effect - but with a metro looking interface :-)

Checked (and working) with Excel 2010.

mcalex

Posted 2013-05-14T12:33:58.613

Reputation: 2 315

-1 in excel 2010 this opens the hyperlink anyway – Chris Marisic – 2014-08-04T13:37:59.620

3No it doesn't. You did it wrong. – mcalex – 2014-08-06T01:21:41.923

3i can tell the difference between text and whitespace where i'm clicking – Chris Marisic – 2014-08-06T12:59:04.447

1Whether or not this works depends on whether or not the cell is set to "wrap text". I don't recall which is which, but with one, clicking only follows the link while over the actual text, and with the other, the entire cell is a hotspot. – Dan Henderson – 2017-05-01T20:55:35.350

@DanHenderson It doesn't work with "wrap text". Without "wrap" *- it works as described in the answer. Just tested in Excel 2013. – Paul Spiegel – 2019-10-24T13:57:25.770

0

This thread opened up to me while looking for a related matter. But I solved quest cell/content hyperlink - remove link and keep the text by this steps a create a new empty collum copy the cells with hyperlinks external into notebook copy the text from the notebook page select in the created new collum an equal amount of cells paste the notebook content into the selected cells

result the hyperlink is cleared, the text before attribute to the hyperlink is now content of the cells in excell / easy as it is.

Give it a try, it did work for me in office excell 2003, maybe you will work fine / kind regards /

Gamla7

Posted 2013-05-14T12:33:58.613

Reputation: 1

-1

Try this:

  • Select the entire sheet, copy
  • Open new workbook, right click any cell, paste options, paste values

This will give you a new sheet with none of the old formatting, including all hyperlinks removed.

kevin h

Posted 2013-05-14T12:33:58.613

Reputation: 1

-1

There are a few ways to do this:

  • One way (which is valid but I don't recommend) is to put a ' (single quote) as the very first character of a cell. This tells Excel "do not format this cell even if it's a hyperlink or formula". I use this if I need to have a formula as a reference for documentation purposes. I don't recommend it because you want to disable the auto-link creation feature. This works on any version of Excel, even Mac.

To disable auto-link creation:

Excel versions 2003 and up

  1. On the Tools menu, click Autocorrect Options.
  2. On the Autoformat As You Type tab, click to clear the Internet and network paths with hyperlinks check box.
  3. Click OK.

    • Note You can also gain access to the Autocorrect Options feature when you type a hyperlink and then click Stop Automatically Creating Hyperlinks on the smart tag button that appears.

SaxDaddy

Posted 2013-05-14T12:33:58.613

Reputation: 3 181