Hyperlink.Address Property
Word Developer Reference |
Returns or sets the address (for example, a file name or URL) of the specified hyperlink. Read/write String.
Syntax
expression.Address
expression Required. A variable that represents a Hyperlink object.
Remarks
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.
Visual Basic for Applications |
---|
|
Example
This example adds a hyperlink to the selection in the active document, sets the address, and then displays the address in a message box.
Visual Basic for Applications |
---|
|
If the active document includes hyperlinks, this example inserts a list of the hyperlink destinations at the end of the document.
Visual Basic for Applications |
---|
|
See Also