View Single Post
 
Old 04-15-2022, 08:38 AM
Marrick13 Marrick13 is offline Windows XP Office 2010 32bit
Competent Performer
 
Join Date: Jun 2006
Posts: 103
Marrick13 will become famous soon enough
Default ConvertURLTextsToHyperlinksInDoc

Is there a way to include text starting with "www" in this code? I tried:

.Text = "htt[ps]{1,2}://[!^13^t^l ]{1,}" Or .Text = "www{1,2}://[!^13^t^l ]{1,}"

but it produces an error in runtime. My workaround would be to just run the code a second time but for "www" instead of "htt[ps]", but I'd rather just run it once and cover all three "http", "https", and "www" instances.
Reply With Quote