#1   Report Post  
Posted to microsoft.public.word.docmanagement
Shrid Shrid is offline
external usenet poster
 
Posts: 3
Default Remove Hyperlink

I have more than 100 hyperlinks in a single word document. How can i remove
all the hyperlinks in one go, obviously the removing hyperlinks one by one
will take lot of time.


Thanks in advance
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Remove Hyperlink

You could toggle the display withy ALT+F9 and use replace to remove ^d
HYPERLINK, but is that what you really want to do? I suspect the following
might be nearer the mark:

Sub UnlinkSomeFields()
Dim iFld As Integer
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldHyperlink Then
.Unlink
End If
End With
Next iFld
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
I have more than 100 hyperlinks in a single word document. How can i
remove all the hyperlinks in one go, obviously the removing
hyperlinks one by one will take lot of time.


Thanks in advance



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Shrid Shrid is offline
external usenet poster
 
Posts: 3
Default Remove Hyperlink

Thanks Graham for your effort, but to be honest it is really very difficult
for a novice like me to understand the second option, can you please
elaborate on what exactly i have to do.
To me it appears like a software program.

"Graham Mayor" wrote:

You could toggle the display withy ALT+F9 and use replace to remove ^d
HYPERLINK, but is that what you really want to do? I suspect the following
might be nearer the mark:

Sub UnlinkSomeFields()
Dim iFld As Integer
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldHyperlink Then
.Unlink
End If
End With
Next iFld
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
I have more than 100 hyperlinks in a single word document. How can i
remove all the hyperlinks in one go, obviously the removing
hyperlinks one by one will take lot of time.


Thanks in advance




  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Remove Hyperlink

It's a macro - http://www.gmayor.com/installing_macro.htm will explain what
to do with the listing.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
Thanks Graham for your effort, but to be honest it is really very
difficult for a novice like me to understand the second option, can
you please elaborate on what exactly i have to do.
To me it appears like a software program.

"Graham Mayor" wrote:

You could toggle the display withy ALT+F9 and use replace to remove
^d HYPERLINK, but is that what you really want to do? I suspect the
following might be nearer the mark:

Sub UnlinkSomeFields()
Dim iFld As Integer
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldHyperlink Then
.Unlink
End If
End With
Next iFld
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
I have more than 100 hyperlinks in a single word document. How can i
remove all the hyperlinks in one go, obviously the removing
hyperlinks one by one will take lot of time.


Thanks in advance



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Shrid Shrid is offline
external usenet poster
 
Posts: 3
Default Remove Hyperlink

Thanks a lot. It did for me

"Graham Mayor" wrote:

It's a macro - http://www.gmayor.com/installing_macro.htm will explain what
to do with the listing.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
Thanks Graham for your effort, but to be honest it is really very
difficult for a novice like me to understand the second option, can
you please elaborate on what exactly i have to do.
To me it appears like a software program.

"Graham Mayor" wrote:

You could toggle the display withy ALT+F9 and use replace to remove
^d HYPERLINK, but is that what you really want to do? I suspect the
following might be nearer the mark:

Sub UnlinkSomeFields()
Dim iFld As Integer
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldHyperlink Then
.Unlink
End If
End With
Next iFld
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
I have more than 100 hyperlinks in a single word document. How can i
remove all the hyperlinks in one go, obviously the removing
hyperlinks one by one will take lot of time.


Thanks in advance






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
rmilnes rmilnes is offline
external usenet poster
 
Posts: 3
Default Remove Hyperlink

Thanks from me, too, Graham. Perhaps you could use your VIP status to get MS
to include this function in their next release of Word.

"Graham Mayor" wrote:

You could toggle the display withy ALT+F9 and use replace to remove ^d
HYPERLINK, but is that what you really want to do? I suspect the following
might be nearer the mark:

Sub UnlinkSomeFields()
Dim iFld As Integer
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldHyperlink Then
.Unlink
End If
End With
Next iFld
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Shrid wrote:
I have more than 100 hyperlinks in a single word document. How can i
remove all the hyperlinks in one go, obviously the removing
hyperlinks one by one will take lot of time.


Thanks in advance




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
How to remove hyperlink reveal codes from displaying Jeff Ingman Microsoft Word Help 1 March 17th 07 06:08 PM
Keep cross-reference but remove hyperlink swimmer Microsoft Word Help 6 January 30th 07 10:09 AM
Remove a hyperlink in a ToC - How? OB1NZ Microsoft Word Help 1 January 4th 07 11:38 PM
Yet Another Remove Hyperlink Question... wklind New Users 1 March 11th 06 08:40 AM
Hyperlink Toggle to Insert/Remove Detailed Text Russ Microsoft Word Help 1 May 2nd 05 11:10 PM


All times are GMT +1. The time now is 10:57 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"