Share via


HasPreviousLink Property [Publisher 2003 VBA Language Reference]

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse Indicates the specified text box does not have a backward text box link.
msoTriStateMixed
msoTriStateToggle
msoTrue Indicates the specified text box has a backward text box link.

expression.HasPreviousLink

expression Required. An expression that returns one of the objects in the Applies To list.

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

Applies to | TextFrame Object