Monday, January 10, 2011

Remove all hyperlinks in word

This is how you can do it


Hit [ALT]+[F11] to open the Visual Basic Editor

Go to “Insert” > “Module”

a pop up window will come up

copy the following


Sub RemoveHyperlinks()
Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldHyperlink Then
oField.Unlink
End If
Next
Set oField = Nothing
End Sub


Then click “File” > "Close and return to Microsoft Word"


You can now run the Macro in Word by going to:

Tools > Macro > Macro and then Run “RemoveAllHyperlinks”


This post was by http://www.tech-recipes.com/rx/1323/remove-all-hyperlinks-in-word-or-excel/

No comments: