My only issue is inserting a linkable email address (hyperlink) into one of the bookmarks. My Gui has a DropDownList control that provides name choices. Using Switch, when the name is chosen, it also has other information including email address. My Switch statements look like this:
In my Word document, the bookmark I'm attempting to insert the hyperlink into is as follows:case "Bob Smith": ManagerName := "Robert J. Smith", ManagerEmail := "[email protected]"
Code: Select all
MyDocNew.Bookmarks("CMemail").Range.Text := ManagerEmail
I've reviewed Hyperlinks.Add but not sure how to make it work or how this is modified to work with AHK. I tried using mailto: in various ways as well. Thanks!