Table of contents
TOC
Collapse the table of content
Expand the table of content

LinkFormat.BreakLink Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Breaks the link between the source file and the specified OLE object, picture, or linked field.

Syntax

expression. BreakLink

expression An expression that returns a LinkFormat object.

Return Value

Nothing

Example

This example shows how to update and then break the links to any shapes that are linked to OLE objects on slide one in the active presentation.

Public Sub BreakLink_Example()



    Dim pptShape As Shape



    For Each pptShape In ActivePresentation.Slides(1).Shapes

        With pptShape

            If .Type = msoLinkedOLEObject Then

                .LinkFormat.Update

                .LinkFormat.BreakLink

            End If

        End With

    Next pptShape



End Sub

See also

Concepts

LinkFormat Object

© 2018 Microsoft