Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
jay jay is offline
external usenet poster
 
Posts: 79
Default deletion of hyperlinks

I'm using 2007 Office with Windows XP Pro.

I have a Word document spotted with many various hyperlinks. I know I can
individually remove them, but surely there is a faster way to remove them
from the document?
  #2   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default deletion of hyperlinks

Use a macro containing the following code:

Dim i As Long
With ActiveDocument
For i = .Hyperlinks.Count To 1 Step -1
.Hyperlinks(i).Delete
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"jay" wrote in message
...
I'm using 2007 Office with Windows XP Pro.

I have a Word document spotted with many various hyperlinks. I know I can
individually remove them, but surely there is a faster way to remove them
from the document?



  #3   Report Post  
Posted to microsoft.public.word.newusers
StevenM[_2_] StevenM[_2_] is offline
external usenet poster
 
Posts: 169
Default deletion of hyperlinks

To: Jay,

The following macro removes all hyperlinks in an active document, in
addition, it places the number of hyperlines to be removed in the status bar
along with the number left to be removed while it removes them. If you have
thousands of hyperlinks in a document, these numbers will give you a general
idea as to how long it will take to remove them all.

'
' Remove all hyperlinks
'
Sub RemoveHyperlinks()
Dim i As Long
Dim nLinks As Long

nLinks = ActiveDocument.Hyperlinks.Count
For i = nLinks To 1 Step -1
Application.StatusBar = nLinks & ":" & i
ActiveDocument.Hyperlinks(i).Delete
Next i
End Sub


Steven Craig Miller


"jay" wrote:

I'm using 2007 Office with Windows XP Pro.

I have a Word document spotted with many various hyperlinks. I know I can
individually remove them, but surely there is a faster way to remove them
from the document?

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
deletion on table DGENG Microsoft Word Help 0 September 9th 07 07:00 AM
'Smart' Deletion NHMM Microsoft Word Help 1 August 31st 07 07:36 PM
Document deletion WisconsinSteve Microsoft Word Help 2 August 31st 06 06:19 PM
file deletion pussycat9 Microsoft Word Help 5 March 11th 06 06:58 AM
Permanent Deletion Crocketty Microsoft Word Help 2 May 5th 05 05:40 AM


All times are GMT +1. The time now is 04:50 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"