(Free image courtesy of Modnar at morguefile. Is there any other MS Word tasks and challenges that you cannot accomplish through the normal Word controls and tools but would like to do it through VBA code? Please let me know. Now the hyperlink is removed from the selected text. Step 2: Right click the selected text, and click the Remove Hyperlink item in the context menu. Step 1: Select the text with hyperlink that you will remove.
#MICROSOFT WORD ADD IN REMOVE HYPERLINKS CODE#
If you’d like to learn how the VBA code exactly works, please leave a comment and I’d be happy to help. It is quite easy to remove a hyperlink in an Email message in Microsoft Outlook. If Word displays a macro selecting dialog box, select the macro and click Run.Īfter you run the macro, Microsoft Word will display a text with no links, as below: Click the GREEN RUN ARROW on the toolbar, or press F5 key, or select Run > Run Sub/User Form from the menu to run the subprocedure. (4) Type the following subprocedure code in your Code Pane: (3) Insert a new module by selecting Insert > Module from the menu.
![microsoft word add in remove hyperlinks microsoft word add in remove hyperlinks](https://www.howtogeek.com/wp-content/uploads/2018/06/img_5b113275771ac.png)
(2) Press ALT + F11 to display the VBA editing screen. That will get rid of all hyperlinks in th document BUT it will get rid of all the linked FIELDS as well!īy writing a little VBA code, you can create a simple macro that would delete only the hyperlinks in the document. You can of course select the whole text and then press CTRL + SHIFT + F9. Go to Insert > Links > Link (or right click the text and select Link) Type the URL for the link destination into the Address field Click OK to. You can also get rid of a hyperlink by placing your cursor anywhere on the link and then pressing CTRL + SHIFT + F9.īut what if you have hundreds or thousands of hyperlinks in a Word document, spread out over hundreds or thousands of pages?
![microsoft word add in remove hyperlinks microsoft word add in remove hyperlinks](https://www.winosbite.com/wp-content/uploads/2020/08/keep-text.jpg)
Make sure that the Text to display text box contains the correct text for the link, 3.2. Choosing that, an Edit Hyperlink box appears. On the Insert tab, in the Links group, click the Link button (or click Ctrl+K on the keyboard): 3. Choosing that, there is a flyout menu and one of the choices is Edit Hyperlink. While pointing to the URL, right click (or equivalent on a trackpad.) This brings up a box with several options. You can delete a hyperlink in a MS Word document by right-clicking on the link and, from the pop-up menu, select Remove Hyperlink. Currently, this involves several steps: 1.