Sub OEDFetch() ' Paul Beverley - Version 10.02.24 ' Launches selected text on OED dictionary site alsoCopySubject = False mySite = "https://www.oed.com/search/dictionary/?scope=Entries&q=" If Selection.Start = Selection.End Then Selection.Expand wdWord Do While InStr(ChrW(8217) & "' ", Right(Selection.Text, 1)) > 0 Selection.MoveEnd , -1 DoEvents Loop End If If alsoCopySubject = True Then Selection.Copy mySubject = Trim(Selection) mySubject = Replace(mySubject, " ", "+") mySubject = Replace(mySubject, "&", "%26") mySubject = Replace(mySubject, ChrW(8217), "'") ActiveDocument.FollowHyperlink Address:=mySite & mySubject Selection.Collapse wdCollapseEnd End Sub