Share via


Target Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Target property as it applies to the Browser object.

Previous

WdBrowseTarget can be one of these WdBrowseTarget constants.
wdBrowseComment
wdBrowseEdit
wdBrowseEndnote
wdBrowseField
wdBrowseFind
wdBrowseFootnote
wdBrowseGoTo
wdBrowseGraphic
wdBrowseHeading
wdBrowsePage
wdBrowseSection
wdBrowseTable

expression.Target

expression   Required. An expression that returns a Browser object.

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

expression.Target

expression   Required. An expression that returns a **Hyperlink**object.

Example

As it applies to the Browser object.

This example moves the insertion point to the next comment in the active document.

  With Application.Browser
    .Target = wdBrowseComment
    .Next
End With

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"