constant that represents the type of hyperlink. Read-only.
PbHlinkTargetType can be one of these PbHlinkTargetType constants. |
pbHlinkTargetTypeEmail |
pbHlinkTargetTypeFirstPage |
pbHlinkTargetTypeLastPage |
pbHlinkTargetTypeNextPage |
pbHlinkTargetTypeNone |
pbHlinkTargetTypePageID |
pbHlinkTargetTypePreviousPage |
pbHlinkTargetTypeURL |
expression.TargetType
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example verifies that the specified hyperlink is a URL and if it is, sets the hyperlink display text and address. This example assumes there is at least one shape on the first page of the active publication.
Sub SetHyperlinkTextToDisplay()
With ActiveDocument.Pages(1).Shapes(1) _
.TextFrame.TextRange.Hyperlinks.Item(1)
If .TargetType = pbHlinkTargetTypeURL Then
.TextToDisplay = "Tailspin Toys Web Site"
.Address = "http://www.tailspintoys.com/"
End If
End With
End Sub