Share via

Printing an actual link in Word

Anonymous
2018-02-21T12:26:02+00:00

I want to print a training document that is currently in Word.  This document contains several hyperlinks.  I want to print it that the learners can see the whole path of the link ie instead of printing 'The document can be found here" (where "here" is the hyperlink), I want it to print "The document can be found https://peterpan/advancedtraining/gogga_blue".  Is it possible?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Stefan Blom 339K Reputation points MVP Volunteer Moderator
    2018-02-22T11:30:26+00:00

    You can run the following macro on a copy of the document. I suggest trying on a copy first for the reason Jay mentioned in his reply (that is, you may not want to "convert" literally all hyperlinks):

    Sub ReplaceHyperlinkDisplayText()

    'Macro created by Stefan Blom, MVP, February 2018

    Dim i As Hyperlink

    For Each i In ActiveDocument.Hyperlinks

    i.TextToDisplay = i.Address

    Next i

    End Sub

    2 people found this answer helpful.
    0 comments No comments
  2. Jay Freedman 207.6K Reputation points Volunteer Moderator
    2018-02-21T21:14:51+00:00

    Almost but not exactly...

    Go to File > Options > Advanced, scroll to the Print heading, and check the box for "Print field codes instead of their values". The result for the suggested hyperlink would then print like this:

    However, there's no way to limit this to just hyperlinks; every field, including table of contents, page numbers, etc. would also print as their field codes.

    A macro could be written to overwrite each hyperlink in a copy of the original document with its Address property, and print that copy. However, there could be other hyperlinks -- in tables of contents, tables of figures, maybe some other places -- that you don't want to overwrite, and avoiding those would be complicated.

    1 person found this answer helpful.
    0 comments No comments
  3. Charles Kenyon 166.7K Reputation points Volunteer Moderator
    2018-02-22T16:21:55+00:00

    Thanks, was hoping for a more "automatic" way, since the document is quite big.  But if all else fails, will have to do it the manual way.

    Give Stefan's macro a try. Note that other than with Undo, this is not likely to be reversible.

    If it is worth the time, you could run the macro on a copy of your document and then do a comparison of the documents to pick up the change. That would let you keep both the original text, which may be important, as well as the URL.

    If this is to be printed, you may also want to change the hyperlink style to not be underlined. Many urls contain underscores, some have spaces. Underlining tends to blur the distinction.

    0 comments No comments
  4. Anonymous
    2018-02-22T06:15:58+00:00

    Thanks, was hoping for a more "automatic" way, since the document is quite big.  But if all else fails, will have to do it the manual way.

    0 comments No comments
  5. Charles Kenyon 166.7K Reputation points Volunteer Moderator
    2018-02-21T21:30:36+00:00

    Depends on the number of hyperlinks. For a few, you can manually edit the document. Go to each hyperlink and right-click on it. Copy the hyperlink. Then go after it, insert a pair of parentheses and between them, paste the hyperlink.

    0 comments No comments