How to Print Full Hyperlink URLs in Microsoft Word
Question details
The user needs a printed Word document to show complete web addresses instead of descriptive hyperlink text.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document contains hyperlinks displayed as words such as "here," but the reader needs to see their URLs on paper.
- Observed behavior
- The printed document should show the full web address for each relevant hyperlink.
Check whether the links point to external web addresses or to locations within the document. If you plan to change all hyperlink display text, work on a separate copy because the changes may be difficult to reverse.
Replace hyperlink display text with URLs using a Word macro
Use this method to change the display text of external hyperlinks throughout a document before printing.
The macro replaces each hyperlink's visible text with its external address. It skips links without an external address, such as links to locations within the document. A separate bookmark or anchor stored in a hyperlink's subaddress may not appear in the replacement text.
In Word, choose File > Save As and save a separate copy to use for printing.
Open the Developer tab and select Visual Basic. If the Developer tab is hidden, enable it under File > Options > Customize Ribbon.
In the Visual Basic editor, select Insert > Module and paste the following code: Sub ReplaceHyperlinkDisplayText() Dim i As Hyperlink For Each i In ActiveDocument.Hyperlinks If i.Address <> "" Then i.TextToDisplay = i.Address Next i End Sub
Return to Word, select Developer > Macros, choose ReplaceHyperlinkDisplayText, and select Run. Review the document to confirm that the addresses appear as intended.
Choose File > Print, check the preview, and select Print.

Change individual hyperlink display text in Word
Use this method when only a few links need to show their full addresses.
Print Word field codes instead of field values
Use field-code printing when you need to inspect hyperlink addresses without changing the display text.
Show full hyperlink addresses before printing in WPS Writer
Open the document in WPS Writer and change each hyperlink's display text to its address before printing. This is useful when you have a small number of links to update.
- 1. Open the document: Open WPS Writer, select Open, and choose your Word document.
- 2. Edit a hyperlink: Right-click the linked text and choose Edit Hyperlink. Copy its address into the display-text field and confirm the change.
- 3. Update remaining links: Repeat the hyperlink-editing action for each address you want readers to see.
- 4. Preview and print: Select Menu > Print, review the print preview, and print the document.

Frequently Asked Questions
Why does Word print "here" instead of the web address?
Word normally prints the hyperlink's display text. Right-click the link, select Edit Hyperlink, and change Text to display to the address if you want the URL to appear.
Can I show all hyperlink addresses without editing them one by one?
In a separate document copy, run the macro in Developer > Macros to replace external hyperlink display text with their addresses. Review the document before printing.
Will printing field codes affect page numbers?
Yes. File > Options > Advanced > Print field codes instead of their values affects other fields as well, including page numbers and tables of contents. Clear the option afterward to restore normal printing.
What happens to links within the same document?
Internal links may not have an external address. The macro above skips links with an empty Address value, so check those links separately before printing.




