Microsoft Word Suite
128
Class: hyperlink object
Plural
hyperlink objects
Represents a hyperlink.
Use the hyperlink property to return a hyperlink object associated with a shape (a shape can have
only one hyperlink). The following example activates the hyperlink associated with the first shape
in the active document.
follow (hyperlink of shape 1 of active document)
Use hyperlink object index, where index is the index number, to return a single hyperlink object
from a document, text range, or selection. The following example activates the first hyperlink in the
selection.
if (count of hyperlink objects) of selection 1 then
follow (hyperlink object 1 of selection)
end if
Properties
email subject
Returns or sets the text string for the specified hyperlink's subject line. The subject line is
appended to the hyperlink's Internet address, or URL. Read/write.
This property is commonly used with e-mail hyperlinks. The value of this property takes
precedence over any e-mail subject specified in the hyperlink address property of the same
hyperlink object.
extra info required
True if extra information is required to resolve the specified hyperlink. Read-only.
Note You can specify extra information by using the extra info argument with the
follow
or
follow hyperlink
command. For example, you can use extra info to specify the coordinates of
an image map, the contents of a form, or a file name.
hyperlink address
Returns the address (for example, a file name or URL) of the specified hyperlink. Read-only.
hyperlink type
Returns the hyperlink type. Read-only.
Can be one of the following:
·
hyperlink type inline shape
·
hyperlink type text rangehyperlink type shape
name
Returns the friendly name (as it appears in the History folder) of the hyperlink. Read-only.