Adding a hyperlink in word, with vb.net
问题 I'm currently trying to add a hyperlink to a web url in word through a VB program. I'm stumbling around to try and find the proper syntax and what I need to accomplish this, because I've been getting a lot of unhelpful VBA examples, which is not what I need at all. My code looks like this: sPara2 = oDoc.Content.Paragraphs.Add sPara2.Range.Text = attachmentRdr("attachmentName") sPara2.Range.Hyperlinks.Add(attachmentRdr("attachmentPath")) sPara2.Format.SpaceAfter = 24 '24 pt spacing after