Delete multiple hyperlinks in MS Word 2007 & 2010


Is your hand getting tired trying to delete bunch of hyperlinks in a document opened in Microsoft Word 2007 program? Ideally, user has to repeat the delete procedure for each hyperlink in the document making the whole routine tiring, boring and very time consuming. How about doing this quickly by removing multiple (all) hyperlinks in single shot?

Manual way to delete Hyperlinks in Word

Right click on each hyperlinks and then click ‘remove hyperlink’ option.

Shortcut to remove all / mutiple Hyperlinks

Select the whole document (press Ctrl + A) containing hyperlinks. Then press Ctrl + Shift + F9

Hence, using above keyboard shortcut you can remove all hyperlinks in a word document in a single stroke. Neat, isn’t it?

Visual Basic Macro to remove Hyperlinks

1. Open the Word document containing hyperlinks.

2. Using keyboard, press ALT + F11 to open the Visual Basic Editor. Now click on Insert > Module.

3. Copy the following code and paste it inside the code space and then Goto File > Close and Return to Microsoft Word

Sub RemoveHyperlinks()
Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldHyperlink Then
End If
Set oField = Nothing
End Sub

4. Now In Word 2007, goto View > Macros and run the Removehyperlinks macro and all the hyperlinks in the documents will be deleted.



  1. Steve Swanberg says

    Okay this works in Word 2010 when Ctrl-A all text is selected.
    How can I select ALOT of text with Hyperlinks and remove them from the Selection . . but leave some Hyperlinks intact in non-Selected text=?

  2. Yay! You’ve made my day. However these necessary, but simple, time savers should be obvious in Office programs.

  3. Techno Geek says

    SELECT ALL AND press contol-shift-F9

  4. Lee Swinford says

    This did not work for me in Outlook 2010 using Word 2010 as the editor.
    I get this compile error:

    User Defined Type Not Defined

    “oField As Field” is highlighted.

  5. thank you … i needed to delete the numbers that are in power eg Linux[25]…
    how to delete [25] in bulk?

  6. I learned something which would be helpful in excel. This works perfect. Tried and tested. Work the same way for macro and copy and paste this code:

    Sub RemoveHyperlinks()

    ‘Remove all hyperlinks from the active sheet

    End Sub


  7. Thanks a ton..
    really a nice and impressive shortcut.

  8. fantastic, thank you very much.

  9. Thank you! You have saved me hours of work.

  10. Very neat trick indeed, productive one. Thanks.

Add a Comment