View Single Post
 
Old 02-04-2020, 07:44 AM
noslenwerd noslenwerd is offline Windows 10 Office 2016 for Mac
Novice
 
Join Date: Dec 2019
Posts: 15
noslenwerd is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Well, what you have with:
<a href="https://developers.google.com/speed/pagespeed/insights/?url=websiteurl.com">PageSpeed Insights</a>
is a link though google to websiteurl.com, whereas you really should have:
<a href="https://websiteurl.com">PageSpeed Insights</a>
That said, you can resolve the matter by changing:
"="
in the VBA code to:
"href="
Actually, that link to google is appending the website, and running a page speed report on websiteurl.com.

Thanks for the reply, but looks like href= is already in the code I posted above?


Code:
With ActiveDocument.Range
  With .Find
    .Text = "\<[Aa] href=([!\>]@)\>([!\<]@)\</a\>"
Reply With Quote