A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

REOVE ALL HYPERLINKS



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 04:59 AM posted to microsoft.public.word.docmanagement
Faraz Ahmed Qureshi[_2_]
external usenet poster
 
Posts: 40
Default REOVE ALL HYPERLINKS

Right click provides for removal of a hyperlink but only when each and every
link is operated upon separately. How to remove all the links from a document
in a single click?
--
Thanx & Best Regards,

Faraz!
  #2  
Old April 30th, 2010, 06:05 AM posted to microsoft.public.word.docmanagement
Graham Mayor
external usenet poster
 
Posts: 18,297
Default REOVE ALL HYPERLINKS

If you want to remove all trace of Hyperlinks including the tip text then
search for and replace the Hyperlink paragraph style with nothing. The
following macro will do that.

Dim oRng As Range
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = ""
.Style = "Hyperlink"
Do While .Execute = True
oRng.Delete
Loop
End With

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

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



"Faraz Ahmed Qureshi" wrote in
message ...
Right click provides for removal of a hyperlink but only when each and
every
link is operated upon separately. How to remove all the links from a
document
in a single click?
--
Thanx & Best Regards,

Faraz!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.