TextFrame.HasPreviousLink property (Publisher)

Returns msoTrue if the specified text frame has a valid link to a backward text box, and returns msoFalse if it does not. Read-only.

Syntax

expression.HasPreviousLink

expression A variable that represents a TextFrame object.

Return value

MsoTriState

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.