LinkFormat 对象 (PowerPoint)LinkFormat object (PowerPoint)

包含应用于链接 OLE 对象、链接的图片和 IIRC 媒体对象的属性和方法。Contains properties and methods that apply to linked OLE objects, linked pictures, and IIRC media objects.

示例Example

使用LinkFormat属性返回一个LinkFormat对象。Use the LinkFormat property to return a LinkFormat object. 下面的示例循环访问当前演示文稿的所有幻灯片上的所有形状,并设置所有链接的 Microsoft Excel 工作表进行手动更新。The following example loops through all the shapes on all the slides in the active presentation and sets all linked Microsoft Excel worksheets to be updated manually.

For Each sld In ActivePresentation.Slides

    For Each sh In sld.Shapes

        If sh.Type = msoLinkedOLEObject Then

            If sh.OLEFormat.ProgID = "Excel.Sheet" Then

                sh.LinkFormat.AutoUpdate = ppUpdateOptionManual

            End If

        End If

    Next

Next

方法Methods

名称Name
BreakLinkBreakLink
更新Update

属性Properties

名称Name
ApplicationApplication
AutoUpdateAutoUpdate
ParentParent
SourceFullNameSourceFullName

另请参阅See also

PowerPoint 对象模型引用PowerPoint Object Model Reference

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.