In this article, we are excited to show you 5 ways to convert URL texts to hyperlinks in your Word document.
By default, when we enter an Internet path in Word document, it automatically changes into a clickable one. However, things are different if we paste these paths to a document, for they will not turn to hyperlink form. Therefore, our article today is to show you 5 ways to do so.
Method 1: Insert Hyperlink Manually
- Firstly, select an Internet path then click “Insert” tab.
- Next click “Hyperlink” in “Links” group to open “Insert Hyperlink” dialog box. Or you can press “Ctrl+ K” instead.
- Then you see the same contents in both “Text to display” and “Address” text box. Click “OK”. And the text shall turns into a hyperlink.
Method 2: Press “Enter” or Spacebar
This is an easy way. You just put insertion pointer after the target path and press either “Enter” or spacebar. Then there is the hyperlink you want.
Method 3: Use “AutoFormat” Command
As we mentioned above, with AutoFormat employed, Internet paths shall turn to hyperlinks automatically but not in such case as pasted texts. As a matter of fact, we can utilize this feature to convert URL texts to hyperlinks.
- To begin with, let’s add the “AutoFormat” command to “Quick Access Toolbar” first. Click “File” then “Options” to open the “Word Options” dialog box.
- Secondly, click “Quick Access Toolbar” on the left column and choose “Commands Not in the Ribbon” for the category.
- Thirdly, find and select the “AutoFormat” command.
- Click “Add” and the “OK”.
- Now click the “AutoFormat” command to open the same name dialog box.
- Click “OK”. You shall notice the plain texts now are in hyperlink form.
- By the way, just for sure you can click “Options” button in “AutoFormat” dialog box to trigger the “AutoCorrect” box. See if the “Internet and network paths with hyperlinks” box is checked. If not, check it and click “OK”.
This method is able to affect all Internet paths in the active document.
Method 4: Run Macro to Convert Selected Paths
- First off, select one or several paths and click “Developer” tab.
- Then click “Visual Basic” to open VBA editor. Or press “Alt+ F11” instead.
- Next click “Normal”.
- And then click “Insert” tab.
- Choose “Module” on the menu.
- Then double click on the new module to bring the coding area.
- Paste the following macro there:
Sub ConvertSelectedURLTextsToHyperlink() Word.Options.AutoFormatReplaceHyperlinks = True Selection.Range.AutoFormat End Sub
- Lastly, click “Run” or press “F5”.
Method 5: Run Macro to Convert All Paths to Hyperlinks
More often than not, our need is to convert all URL texts to hyperlinks in a document. If so, you can make use of the bellowing codes to get what you want.
Follow all the instructions in method 4 but replace the macro with this one:
Sub ConvertURLTextsToHyperlinksInDoc() Dim objDoc As Document Set objDoc = ActiveDocument Word.Options.AutoFormatReplaceHyperlinks = True objDoc.Range.AutoFormat End Sub
Get down to Fixing Corrupted Documents
Word is vulnerable to many kinds of errors. Unfortunately, such circumstances are not easily to go away anytime soon. Give to the fact of how much inconvenience that a damaged Word can bring to users, we recommend that you should take hold of a prominent program to address the issue as soon as possible.
Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including recover xls and pdf repair software products. For more information visit www.datanumen.com