TextFrame.HasNextLink property (Publisher)
Indicates whether the specified text frame has a valid forward text box link. Read-only.
Syntax
expression.HasNextLink
expression A variable that represents a TextFrame object.
Return value
MsoTriState
Remarks
The HasNextLink property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.
Constant | Description |
---|---|
msoFalse | The specified text frame does not have a forward text box link. |
msoTrue | The specified text frame has a forward text box link. |
Example
This example breaks all links in the document to the first specified text frame if links exist. This example assumes that there is at least one shape on the first page of the active publication.
Sub AddPreviousNextLinkPages()
With ActiveDocument.Pages(1).Shapes(1).TextFrame
If .HasNextLink Then .BreakForwardLink
If .HasPreviousLink Then .PreviousLinkedTextFrame _
.BreakForwardLink
End With
End Sub
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.