Results 1 to 7 of 7
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Florida, USA
    Posts
    394
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,
    I've just copied and pasted some information from the web onto a Word document. The document is now several pages long and has, I would say, about 100 links back to the internet.

    I know I could click on every hyperlinked word and delete the link but that would take forever. I there a quick way to get them all at once?

    Thanks!
    Louise

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You could run this macro:

    Code:
    Sub RemoveHyperlinks()
      Dim i As Integer
      For i = ActiveDocument.Hyperlinks.Count To 1 Step -1
    	ActiveDocument.Hyperlinks(i).Delete
      Next i
    End Sub

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Florida, USA
    Posts
    394
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Hans,

    Thanks! Would I highlight the entire document first and then run the macro?
    Louise

  4. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    I've just copied and pasted some information from the web onto a Word document. The document is now several pages long and has, I would say, about 100 links back to the internet.

    I know I could click on every hyperlinked word and delete the link but that would take forever. I there a quick way to get them all at once?
    Hi Louise,

    If it's sufficient for your purposes, you can simply select the whole document (eg Ctrl-A), or just the range you've pasted from the Internet, then press Ctrl-Shift-F9. That will kill every kind of link in the selected range.
    Last edited by macropod; 2013-01-30 at 07:54.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts
    [quote name='weese237' post='774477' date='09-May-2009 23:10']Thanks! Would I highlight the entire document first and then run the macro?[/quote]
    There is no need to highlight the entire document. The code removes all hyperlinks in the active document regardless of what is currently selected.

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    No, you don't need to select any text. The macro will remove all hyperlinks in the active document.

    If you want to remove hyperlinks from selected text only, change both occurrences of ActiveDocument in the macro to Selection

  7. #7
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Florida, USA
    Posts
    394
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you Paul, StuartR and Hans !!
    Louise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •