Share via


ChartData.IsLinked Property

True if the data for the chart is linked to an external Microsoft Excel workbook. Read-only Boolean.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property IsLinked As Boolean
    Get
'Usage
Dim instance As ChartData
Dim value As Boolean

value = instance.IsLinked
bool IsLinked { get; }

Property Value

Type: System.Boolean

Remarks

Using the BreakLink() method to remove the link to a Microsoft Excel workbook sets this property to False.

Examples

The following example checks if the data for the first chart in the active document is linked to an external Microsoft Excel workbook. If the data for the chart is linked, the example then uses the BreakLink method to remove the link. If the data for the chart is not linked, the example uses the Activate() method to display the embedded data for the chart.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        With .Chart.ChartData

            If .IsLinkedThen

                .BreakLink

            Else

                .Activate

            End If

        End With

    End If

End With

See Also

Reference

ChartData Interface

ChartData Members

Microsoft.Office.Interop.PowerPoint Namespace