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. Scroll down and click on the drop-down menu beside Hyperlink. Click on the downward arrow in the Styles section.
REMOVE HYPERLINK IN WORD CODE
If you’d like to learn how the VBA code exactly works, please leave a comment and I’d be happy to help. To remove hyperlinks in Word: Open Word document.
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. If you only want to remove or delete all hyperlinks from text in a part of the document, you can get it done as follows: 1. For Word in Mac, the following are the steps for shortcut option.Step 1: Use 'COMMAND+A' and this selects all the contents in your word in which you want to remove the hyperlinks. Its a whole lot easier then right clicking and.
REMOVE HYPERLINK IN WORD FOR MAC
(4) Type the following subprocedure code in your Code Pane: Remove or delete all hyperlinks from text in a part of the document. For Mac MS Word Users: COMMAND+A (Selects all the content you want to remove hyperlinks from) FN+COMMAND+SHIFT+F9 (This promptly removes all the hyperlinks in your MS Word document) You can also hold FN+COMMAND+SHIFT+F9 to simply remove one selected hyperlink on Mac, or PC hold CTRL+SHIFT+F9. Open the document that contains the hyperlinks you want to remove, and make sure the typing cursor is on one of the pages. (3) Insert a new module by selecting Insert > Module from the menu. Fortunately, Word has the option of removing all hyperlinks in a document or in a specific part of the document using a single keyboard shortcut. (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. If LCase (doc.Hyperlinks (i).Address) Like 'partOfHyperlinkHere' Then Change the links address. For Each doc In Application.Documents Loop through all hyperlinks. Then click Home > Clear > Remove Hyperlinks, see screenshot: Tips: You can also right-click the selected range, and choose Remove Hyperlinks from the menu, see screenshot: 3. I used mid () function: Sub FixMyHyperlink () Dim doc As Document Dim link, i Loop through all open documents. Select the range containing hyperlinks you want to remove. 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? If the hyperlinks are in the same worksheet, you can use the Remove Hyperlinks function to remove them. 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.