Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ed S Ed S is offline
external usenet poster
 
Posts: 1
Default How do I remove ALL hyperlinks from a .docx file?

I imported a file from a Web page and created a Word 2007 .docx file. The
file is loaded with hyperlinks. How can I remove them without doing each
individually? I actually have a number of these files.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Yves Dhondt Yves Dhondt is offline
external usenet poster
 
Posts: 767
Default How do I remove ALL hyperlinks from a .docx file?

You could use the following macro which replaces each hyperlink with its
text.

===========
Sub RemoveHyperlinks()
Dim fld As Field
Dim str As String

For Each fld In ActiveDocument.Fields
If fld.Type = wdFieldHyperlink Then
fld.Select
Selection.Text = fld.Result
End If
Next

End Sub
===========

Yves

"Ed S" wrote in message
...
I imported a file from a Web page and created a Word 2007 .docx file. The
file is loaded with hyperlinks. How can I remove them without doing each
individually? I actually have a number of these files.


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 do I update hyperlinks to the converted docx files? JH New Users 1 February 23rd 09 08:54 PM
How do I get old hyperlinks to look for .docx files? Dino-Dino-UK Microsoft Word Help 1 December 12th 08 01:49 AM
Opening docx hyperlink from within a docx file Mark Microsoft Word Help 0 June 17th 08 03:58 AM
How can I remove all hyperlinks at once to save as no-HPLnk file GeneCT Microsoft Word Help 1 August 22nd 07 09:13 PM
Docx hyperlinks? Richard Microsoft Word Help 1 May 7th 07 08:56 PM


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