Partager via


LinkFormat.BreakLink Method (PowerPoint)

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

LinkFormat Object Members