Target Property

Microsoft Word Visual Basic

Returns or sets the document item that the Previous and Next methods locate. Read/write WdBrowseTarget.

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.

ShowTarget property as it applies to the Hyperlink 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

ShowAs 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
				

ShowAs it applies to the Hyperlink object.

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"