| << | The Future of Music? | Welcome! | >> |
| posted at 15:16:32 By Flipping Heck! | Posted In Software Tips |
Ever copy and paste something from the Internet and then into Word only to get the hyperlinks embedded? You can removed them easily with the Macro below.
Hit [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"
You can do the same in an Excel Document:
Hit [ALT]+[F11] to open the Visual Basic Editor
Go to "Insert" > "Module" and in the pop-up window copy:
Sub RemoveHyperlinks()
'Remove all hyperlinks from the active sheet
ActiveSheet.Hyperlinks.Delete
End Sub
Then click "File" > Close and return to Microsoft Excel
You can now run the Macro in Excel by going to:
Tools > Macro > Macro and then Run "RemoveAllHyperlinks"
| Click To View Comments (8) | Trackback URL | |
| << | The Future of Music? | Welcome! | >> |





View the Tag Cloud or View the Category Cloud