View all links in word

In the article below, we will introduce you how to find, change and delete hyperlinks in your Word document.

Hyperlinks in a Word document are very convenient. We can click it to quickly jump to the corresponding web page. Moreover, Word provides a feature which can convert the text into hyperlink automatically. However, sometimes it is not desirable. In one of our article “3 Ways to Prevent Word from Auto Creating Hyperlink“, we show you how to prevent Word from auto convert text into hyperlink. Actually, there is one more way to do that task.

Use “Paste Special” Option

  1. When you finish copying a text, click “Paste” in “Clipboard” group. For example, we here copy a sample text as below:     Content Containing Multiple Hyperlinks
  2. Then choose “Paste Special”.Click "Paste" then Choose "Paste Special"
  3. In “Paste Special” dialog box, choose “Unformatted Text”.
  4. And click “OK”.Choose "Unformatted Text" ->Click "OK"

Now you can see all formats disappear including hyperlinks.All hyperlinks are gone.

Now let’s see another situation. If you get a long document with thousands of hyperlinks from your colleague, you may want to change or delete some of them.

Below we will first introduce the basic two parts of a hyperlink, and then propose a method to quickly find or locate multiple hyperlinks. And finally, we will give out several methods to modify or remove the hyperlinks in your document.

Two Parts of a Hyperlink

Actually, hyperlink in Word document is a special text, which contains the following two parts:

  1. Anchored Text: this is the visible and clickable text in a hyperlink. In the example below, the blue words “DataNumen Word Repair” is the “Anchored Text”:Words in blue is anchored text.
  2. Link: this refers to the Internet address to which the anchored text links. You cannot see it directly.

Usually, it is the “Anchored Text” that is shown on your document. To view the “Link” part, you can press “Alt + F9”. Below is an example:Hyperlink Including Internet Address

Simply press “Alt + F9” again, and you can switch back to “Anchored Text”.

Find All Hyperlinks in a Document

  1. First, press keyboard shortcuts “Alt+ F9”. You can see all hyperlinks turn into their “Link” parts now.Press "Alt+ F9" to Turn Hyperlinks in Field Codes
  2. Press “Ctrl + H” to open the “Find and Replace” dialog box.
  3. Click “Find”.
  4. Then type “^d HYPERLINK” in “Find what” text box.
  5. Next click “Reading Highlight”.
  6. Choose “Highlight All”.Click "Find" ->Type "^d HYPERLINK" in "Find what" Text Box ->Click "Reading Highlight" ->Choose "Highlight All"

Now you can achieve the effect as below:All hyperlinks have been highlighted.

  1. Then all the hyperlinks will be highlighted.
  2. You can also click “Find Next” button to locate each hyperlink one by one.

Change Multiple Hyperlinks in Batch

Let’s say, if you want to migrate your website from http to its secure version, i.e., https. Then you need to change the following link:

https://www.datanumen.com

to its https version:

https://www.datanumen.com

It is obviously not convenient to change all links one by one manually, especially when a file contains thousands of them. Following is the solution:

Since there are two parts in a hyperlink, you need to change both of them.

To change the “Anchored Text” part of the hyperlink:

  1. Press “Ctrl + H” to open the “Find and Replace” dialog box.
  2. Type “http://” in “Find what” text box.
  3. Then type “https://” in “Replace with” text box.
  4. Click “Replace All”. Now you shall finishing replacing the “Anchored text” part.Type "http://" in "Find what" Text Box ->Type "https://" in "Replace with" Text Box ->Click "Replace All"The anchored text part is replaced while the link part is not.

To change the “Link” part of the hyperlink:

  1. Press “Alt + F9” to switch to the “Link” part.
  2. And press “Ctrl + H” to open the “Find and Replace” dialog box.
  3. Type “https://www.datanumen.com” in “Find what” text box.
  4. Type “https://www.datanumen.com” in “Replace with” text box.
  5. Click “Replace” or “Replace All” button.Type "https://www.datanumen.com" in "Find what" Text Box ->Type "https://www.datanimen.com" in "Replace with" Text Box ->Click "Replace All"The hyperlink has been replaced.

Now you have replaced both parts of the hyperlink.

Other than finding or changing hyperlinks, sometimes you may also want to remove them. Following are four methods you can use:

Remove Hyperlinks – Method 1: Right Click

  1. First thing, select a hyperlink in your Word document.
  2. Then right click.
  3. Choose “Remove Hyperlink” option on the menu.Select a Hyperlink ->Right Click ->Choose "Remove Hyperlink"

Now you can see the Hyperlink no more. Generally speaking, this is perhaps the most common way to carry out the performance. It’s simple. However, it’s probably not the quickest way to do so when there are thousands of hyperlinks in a document.

Method 2: Use “Format Painter”

In case you have no patience to delete hyperlinks one by one manually, you can check out the following steps.

  1. First, repeat steps in method 1.
  2. Next, select the row where the disabled hyperlink lies.
  3. Now, double click the “Format Painter” icon in “Clipboard” group.
  4. Then drag your cursor to select the content which contains the rest hyperlinks.Select the Rest Content Which Contains Hyperlinks

Check the video below:

When you finish the steps above, all hyperlinks shall be gone. Comparing with method 1, this one can be a real time saver. Meanwhile, it’s not that complicated.

Method 3: Use “Replace” Feature

  1. To use this way, you have to finish all steps in “Steps to Find All Hyperlinks in a Document” first. Make sure you have pressed “Alt + F9” to change to the “Link” view.
  2. Then in “Find and Replace” dialog box, click “Replace”.
  3. Type “^d HYPERLINK” in “Find what” text box.
  4. Finally click “Replace All”.Press "Alt+ F9" ->type "^d HYPERLINK" in "Find what" Text Box ->Click "Replace All"

Method 4: Use Macro in Word

You can also realize deleting hyperlinks in batch by using macro in Word.

  1. To begin with, press “Alt+ F11” to open “Microsoft Visual Basic for Applications” window.
  2. Next, double click “This Document” on the left tree view.Double Click "ThisDocument" on the Left Tree View
  3. Copy the following code and paste them on the right editing area:

Sub RemoveLinks()

‘ Enumerate all the hyperlinks and remove them in the document

While ThisDocument.Hyperlinks.Count > 0

ThisDocument.Hyperlinks(1).Delete

Wend

End Sub

  1. Then click the green “Run Sub” button. Or you can simply press “F5”. Both operations can start running the macro.Type the Codes ->Click "Run Sub" Button

Comparison of 4 Removal Methods

Methods Advantages Disadvantages
 

Right Click

 

Simple

You can only remove one hyperlink at a time, which can waste you much time.
 

Use “Format Painter”

1.        Simple

2.        It’s able to remove multiple hyperlinks in batch, but you need to manually select the related contents.

You have to click and hold on to scroll down so as to select the whole document which can cost time.
 

Use “Replace” Feature

 

It’s able to remove multiple hyperlinks in batch.

You have to remember the codes “^d HYPERLINK”.
 

Use Macro in Word

 

It’s able to remove multiple hyperlinks in batch.

You have to use VBA codes which is a bit complex for beginners.

Deal with Crashed Files

Frequent switching between webpages and documents can result in Word file corruption. To recover word and bring back your files, you need to use the built-in recovery function in Word. Certainly, for better recovery experience, you can take a third-party tool to do it.

Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including excel recovery and pdf repair software products. For more information visit www.datanumen.com

I really found the answer of @user228546 helpful, as I could not get my version of Microsoft Word (2013) to show me the options in the accepted answer. However, it’s a little brief, and it requires a good knowledge of Visual Basic for Applications (VBA) to get everything to work.

Here’s a slightly modified answer that could help some people who don’t know so much about VBA.

You’ll need to get to the VBA editor using Alt+F11. Use «Insert» -> «Module» up at the top, which will get you an editor window.


Get the Link Addresses in a New Document

I’m actually going to save the extracted hyperlinks into a new document, which I’ll then save.

Type (or copy/paste) the following into the editor window.

Sub GetLinksInNewDoc()
'
' Finds all hyperlinks (even with strange formats,
' as long as they're active)
' and displays them in a new document.
'
    ' Declare the types of our variables
    Dim doc As Document
    Dim newDoc As Document
    Dim hlink As Hyperlink

    ' Use the script on the current document
    Set doc = ActiveDocument
    ' Open a new document to put the link addresses into
    Set newDoc = Documents.Add

    ' Loop through all the hyperlinks using the iterable hlink variable
    With doc
        For Each hlink In .Hyperlinks
            ' Switch into the new document
            newDoc.Activate

            ' Put the Hyperlink Address in the new document
            With Selection
                .InsertAfter hlink.Address & " " & hlink.SubAddress
                .InsertAfter vbNewLine
            End With
        Next hlink
    End With

    Set doc = Nothing
    Set newDoc = Nothing
End Sub

Make sure that your Document with the hyperlinks is the last Microsoft Word document you had highlighted. Save your code. Either click on the green arrow to run, or from the upper toolbar select «Run» -> «Run Sub/UserForm», or press F5

Note that you might get a «grey ghost» of the text that will eventually be in the document — something like

Grey Ghost example


Get the Link Addresses in a TXT File

Now, if you actually wanted to save the URLs to a TXT file, which is what got me to this question, you can use the same procedure, except your code should be

Sub GetLinksInTxtFile()
'
' Finds all hyperlinks (even with strange formats,
' as long as they're active)
' and outputs them to a TXT file.
' The TXT file will be written in the same directory
' as the original document
'
    ' Declare the types of our variables
    Dim doc As Document
    Dim hlink As Hyperlink

    ' Use the script on the current document
    Set doc = ActiveDocument

    ' Get a text file ready to which you will write the URLs
    ' Some old-school BASIC
    Open doc.Path & "the_urls.txt" For Output As #1

    ' Loop through all the hyperlinks using the iterable hlink variable
    With doc
        For Each hlink In .Hyperlinks
            Print #1, hlink.Address & " " & hlink.SubAddress
        Next hlink
    End With

    Close #1
    Set doc = Nothing
End Sub

I hope it helps.


Source for my understanding, outline of copying into new document.

Another related source

Source for writing to a text file (which is what I originally came searching for)

web analytics

Skip to content

Create! Teach! Inspire! Logo

How to Find and Check Hyperlinks in a Word Document

How to Find and Check Hyperlinks in a Word Document

There are a lot of reasons why you might want to locate hyperlinks in a Word document.

You might be working with an old file and you want to be sure all the links are valid before you share it. When I upload ebooks to various online seller platforms, I have to make sure that the file doesn’t include a link to a competitor’s site. Apple, for example, won’t accept an ebook that contains a link to Amazon.

If you need to find and check hyperlinks in a Word document, here’s how to do it:

  1. Press Alt + F9 to display the link in all your hyperlinks.
  2. Press Ctrl + F to open the search dialog box.
  3. Type “HYPERLINK” in the search box.

Word will highlight all the links in your document.

There’s no function in Word to automatically check the links. You’ll have to check them manually by copying them into a browser or purchase a Word add-in that will do it for you.

If you want to specifically look for links to a certain site, you can search on that site’s name while the links are displayed.

When you’re finished, press Alt + F9 to toggle back to the link text.

Note that this will not reveal links that may be attached to images in your Word document. You’ll need to check each image individually.

  • About
  • Latest Posts
Jacquelyn Lynn
Jacquelyn Lynn is an inspirational author, ghostwriter, and self-publishing consultant whose credits include more than 45 books, 3,000+ magazine articles, ebooks, blogs, white papers, and more.

Jacquelyn’s latest book is Seven Day Anger Free Challenge: Be the Peace. She is the author of the novel Choices (A Joyful Cup Story) as well as the nonfiction books The Simple Facts About Self-Publishing, Words to Work By: 31 devotions for the workplace based on the Book of Proverbs and Finding Joy in the Morning: You can make it through the night. With her husband, she is the co-creator of several coloring books for adults.

Jacquelyn Lynn

Related Posts

Page load link

Go to Top

  • Remove From My Forums
  • Вопрос

  • Hi,

    I have a long document. Is there a way to quickly find all the hyperlinks in the document?

    Thanks

Ответы

  • To find all hyperlinks, do the following:

    • Press ALT+F9
    • Open the Find… box, and type in ^d HYPERLINK
    • Use Find Next or enable Highlight All

    You can press ALT+F9 again when you’re done in order to turn off the field codes used to find the hyperlinks.

    Answer Source.


    Rory Fewell

    (CCNA, MOS)

    Windows Server 2012 and Networking Fundamentals Apprentice

    Visit my site!

    View me on GitHub!

    • Предложено в качестве ответа

      26 октября 2016 г. 12:33

    • Помечено в качестве ответа
      Emi ZhangMicrosoft contingent staff
      6 ноября 2016 г. 11:40

How to Add and Edit Links in Word Documents

Insert hyperlinks quickly

Updated on February 11, 2021

What to Know

  • Highlight text you want to hyperlink. Right-click it and choose Link. Alternatively, select Insert > Links > Link.
  • Then, enter the URL in the Address field.
  • Remove a link: Right-click the hyperlink text and choose Remove Hyperlink.

Microsoft Word is primarily used to create word processing documents, but you can also work with hyperlinks and HTML code used in websites. Learn how to insert, remove, or edit hyperlinks using Word for Microsoft 365, Word 2019, Word 2016, Word 2013, and Word 2010.

Insert Links

To link to other documents or web pages from a Word document, insert a hyperlink.

  1. Select the text that you want to apply the hyperlink to. This can be the text of a URL, a single word, a phrase, a sentence, or a paragraph.

  2. Right-click the text and select Link or Hyperlink to open the Insert Hyperlink dialog box. Or, go to the Insert tab and select Links > Link.

  3. In the Address field, enter the URL address of the document or website you want to link to. For online assets, the URL must include the protocol (for example, http, https, or ftp).

    The Text to display text box defaults to the text you selected in step 1. You can change this text here if you like.

  4. Select OK.

  5. The selected text appears as a hyperlink that can be clicked to open the linked document or website.

    To make changes to the link, right-click the hyperlink and select Edit Hyperlink.

Remove Hyperlinks

When you type a URL into Word, it automatically inserts a hyperlink that connects to the website. This feature is handy if you distribute documents electronically, but it can be a nuisance when printing documents.

To remove a hyperlink, right-click the link and select Remove Hyperlink.

In Word for Mac, right-click then select Hyperlink. In the slide-out menu, select Edit Hyperlink, then choose Remove Link.

More About Editing Hyperlinks

When you work in the Insert Hyperlink dialog box and the Edit Hyperlink dialog box, several other features are available on the left side of the dialog box.

Existing File or Web Page

This tab is selected by default in the Insert Hyperlink and the Edit Hyperlink dialog boxes. This tab displays the text for the hyperlink and the URL of that hyperlink

In the middle of the window, there are three tabs:

  • Current Folder displays files that are located in the same folder location as the current document. If you want the selected link to link to a document located in this folder, locate the file and choose it. The Address field changes to reflect the document location on your computer. The Text to display field also changes to the file address, so you may want to edit this field to change the text that displays in the Word document. 
  • Browsed Pages shows a list of recent documents and web pages you have accessed. Select one of these as the new link destination.
  • Recent Files displays a list of recent files you’ve worked on in Word. This is handy if you’re working on a series of separate documents and want to create links to these files quickly.

Place in This Document

This tab displays sections and bookmarks contained in the current document. Use it to link to specific locations within the current document.

Create New Document

Go to this tab to create a new document to which the link will connect. This feature is useful if you’re creating a series of documents but haven’t created the document you want to link to. Define the name of the new document in the labeled field. 

If you don’t want to edit the new document you create from here, select Edit the new document later.

Email Address

This section creates a link that will generate a new email when someone clicks it and populates several of the new email fields with the defaults you define. Enter the email address where you want the new email to be sent, and add the subject that will appear in the new email by filling in the appropriate fields.

If you have used this feature recently for other links, any email addresses you used in those will appear in the Recently used e-mail addresses list.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Like this post? Please share to your friends:
  • View all fields in word
  • View all characters in word
  • Vietnamese word for no
  • Vim copy one word
  • Views on the word groups