I'm creating a document using an existing document and adding text to it, then saving it as a different filename. I'd like to have a hyperlink in it, but I'm having an issue. The hyperlink is created and looks fine but doesn't work because the file location is added to the begining of it.
Code:
objDocument = objWordApp.Documents.Open("C:\shippingmanifest4.docx")
Dim myRg As Word.Range = oTable.Cell(intRow, 2).Range
Dim addr As String = "www.fedex.com/fedextrack/index.html?tracknumbers=" & strTID
objDocument.Hyperlinks.Add(myRg, addr, "", "", strTID, "")
The link actually ends up being "C:\www.fedex.com\fedextrack\index.html?tracknumbers=1Zfedextrackingid"