Upravit

Sdílet prostřednictvím


Hyperlink.Target property (Word)

Returns or sets the name of the frame or window in which to load the hyperlink. Read/write String.

Syntax

expression. Target

expression Required. A variable that represents a 'Hyperlink' object.

Example

This example sets the specified hyperlink to open in a new browser window.

ActiveDocument.Hyperlinks(1).Target = "_blank"

This example sets the specified hyperlink to open in the frame called "left."

ActiveDocument.Hyperlinks(1).Target = "left"

See also

Hyperlink Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.