Code: Select all
Dim strAddress As String
strAddress = ActiveDocument.FormFields("Street").Result & ", " & ActiveDocument.FormFields("City").Result
strAddress = Replace(strAddress, " ", "+")
ActiveDocument.FollowHyperlink "http://maps.google.com?q=" & strAddress
I was wondering is it possible to just link data from one part of a doc to a text form field and then run this line of code