View Single Post
 
Old 07-19-2020, 10:36 AM
pjs15 pjs15 is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2020
Posts: 7
pjs15 is on a distinguished road
Default Convert hyperlinked text to text followed by URL

I often need to paste Word documents with hyperlinks into a plain text editor/platform, which strips out hyperlinks. So I don't have to then manually insert the links, is there a Word macro that can convert each hyperlink into its corresponding html? Here's what I want to do for all hyperlinks in a document:
Transform hyperlinked text such as "as reported in NEJM" which, when clicked, goes to https://www.nejm.org/doi/full/10.1056/nejmoa1112010 and replace it with:
<a target="_blank" href="https://www.nejm.org/doi/full/10.1056/nejmoa1112010">as reported in NEJM</a>
Thanks in advance for any suggestions.

pjs
Reply With Quote