How do you programmatically turn a url into a hyperlink pointed to that url? Thanks, Larry
L Larry Jul 15, 2005 #1 How do you programmatically turn a url into a hyperlink pointed to that url? Thanks, Larry
J Jay Freedman Jul 15, 2005 #2 Larry said: How do you programmatically turn a url into a hyperlink pointed to that url? Thanks, Larry Click to expand... This would be the minimum, assuming that the url is selected (and nothing else): ActiveDocument.Hyperlinks.Add _ Anchor:=Selection.Range, _ Address:=Selection.Text You might want to do some error-checking. ;-)
Larry said: How do you programmatically turn a url into a hyperlink pointed to that url? Thanks, Larry Click to expand... This would be the minimum, assuming that the url is selected (and nothing else): ActiveDocument.Hyperlinks.Add _ Anchor:=Selection.Range, _ Address:=Selection.Text You might want to do some error-checking. ;-)
L Larry Jul 17, 2005 #3 Thanks much. I should have been able to figure this out, from previous macros I have that work with hyperlinks, but it's been a while and it wasn't fresh to my memory. The newsgroups remain invaluable. Larry
Thanks much. I should have been able to figure this out, from previous macros I have that work with hyperlinks, but it's been a while and it wasn't fresh to my memory. The newsgroups remain invaluable. Larry