Hyperlink.Target Property

Word Developer Reference

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.

Visual Basic for Applications
  ActiveDocument.Hyperlinks(1).Target = "_blank"

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

Visual Basic for Applications
  ActiveDocument.Hyperlinks(1).Target = "left"

See Also