Cange and Format HTML Adresseses to "Link"

B

BA

Thank you for reading this.

How do I auto format multiple links in a Word document to simply say
"Link", while retaining the underlying and correct URL address?

I have thousands of bibliographic citations that currently read like this….

Higashi, Y., Chayama, K., and Yoshizumi, M.(2005) Angiotensin II type I
receptor blocker and endothelial function in humans: role of nitric oxide and
oxidative stress. Curr.Med.Chem.Cardiovasc.Hematol.Agents: (3) 133-148.
http://www.ncbi.nlm.nih.gov/pubmed/15853700

Gerritsen, M. E.(2005) Genetic variations in vascular endothelial growth
factor and endothelial nitric oxide synthase and their contributions to human
disease. Microcirculation.: (12) 129-140.
http://www.ncbi.nlm.nih.gov/pubmed/15825252


But for a Web Page project need to read like this…

Higashi, Y., Chayama, K., and Yoshizumi, M.(2005) Angiotensin II type I
receptor blocker and endothelial function in humans: role of nitric oxide and
oxidative stress. Curr.Med.Chem.Cardiovasc.Hematol.Agents: (3) 133-148.
Link

Gerritsen, M. E.(2005) Genetic variations in vascular endothelial growth
factor and endothelial nitric oxide synthase and their contributions to human
disease. Microcirculation.: (12) 129-140.
Link


…while retaining the underlying and correct URL address, which is different
for each citation, I know that I can go "Edit Hyperlink" and change the
display name to "Link", but doing thousands of time seems daunting. I’ve
tried search/replace “wildcardâ€, but have not been successful.

Thank you.
 
J

Jay Freedman

To change all the links at once, you need a macro. This will do it:

Sub HyperlinkToLink()
Dim HL As Hyperlink
For Each HL In ActiveDocument.Hyperlinks
HL.TextToDisplay = "Link"
Next
End Sub

See http://www.gmayor.com/installing_macro.htm if you need
instructions for using the macro.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top