Thank you for reading this …
There is a macro in MS Word (Windows) that converts the display name of a link to a word, “Link” and retains the underlying URL info.
How can I convert this to Applescript/Automator and apply it in Word?
See this script.
Sub AllURLsSayLink()
Dim HL As Hyperlink
For Each HL In ActiveDocument.Hyperlinks
HL.TextToDisplay = “Link”
Next
End Sub
This will change only the displayed text, not the address or the tooltip (which will show the address).
I have also been referred to this script…
Sub changeHyperlinks()
Dim hl As Hyperlink
For Each hl In ActiveDocument.Hyperlinks
hl.TextToDisplay = “Link”
Next hl
End Sub
=============================
Is there any way to auto format multiple links in a Word documents to simply say “Link”, while of course 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
Again 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,