Hyperlink.Address (Word)

Returns or sets the address (for example, a file name or URL) of the specified hyperlink.

If there is no hyperlink associated with an object, setting the Address property returns an error occurs. In this case, use the Add method for the Hyperlinks collection to add a hyperlink. The following example shows how to do this.


ActiveDocument.Hyperlinks.Add Selection.Range, "https://www.microsoft.com"