Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Calgary, Alberta, Canada
    Posts
    818
    Thanks
    6
    Thanked 1 Time in 1 Post

    Hyperlinks (Word 2K/SR-1)

    I have a document full of hyperlinks. <img src=/S/help.gif border=0 alt=help width=23 height=15> Can anyone tell me how to remove them all at once, rather than one at a time using the right-click -->Hyperlink -->Remove Hyperlink process. I do not even seem to be able to record a macros to automate this process. <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23> <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>

    Any insight that anyone can provide is greatly appreciated. Thanks.

    Ron M <img src=/S/smile.gif border=0 alt=smile width=15 height=15> <img src=/S/smile.gif border=0 alt=smile width=15 height=15> <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Hyperlinks (Word 2K/SR-1)

    This Macro steps through all the Hyperlinks starting at the end of the document and deletes them. If you try to delete them starting at the beginning (or using For Each Hyperlink in ActiveDocument.Hyperlinks) then you only delete 1/2 of them because they all shift down one each time another is deleted.

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

    StuartR

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Hyperlinks (Word 2K/SR-1)

    If you have no other types of fields, it is simple:

    Select the entire document (Ctrl+A)
    Unlink all fields (Shft+Ctrl+F9)

    However, this will replace ALL fields in the document with their result. Is this acceptable?

  4. #4
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Calgary, Alberta, Canada
    Posts
    818
    Thanks
    6
    Thanked 1 Time in 1 Post

    Re: Hyperlinks (Word 2K/SR-1)

    Thanks Stuart and Hans. <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> They both work well. No more <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>, just <img src=/S/compute.gif border=0 alt=compute width=40 height=20>

    Ron M <img src=/S/smile.gif border=0 alt=smile width=15 height=15> <img src=/S/smile.gif border=0 alt=smile width=15 height=15> <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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