Removing all hyperlinks in Word !

As simple as may sound I always forgot how to remove all the hyperlinks from a Word documents, instead of going right-click one by one, this of course is when you have a lot of them. You can use this shortcut or make it more elaborated and make a macro.

word

Shortcut:

Select all the document(Ctrl-A) or the paragraph you want to remove the hyperlinks from and…press

Ctrl + Shift + F9


Macro

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

Go to “Insert” > “Module” and in the pop-up window copy:

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”

Advertisements

~ by reavenm on October 30, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: